Skip to content

This plugin will gather metrics on the bandwidth usage for Sensu.

License

Notifications You must be signed in to change notification settings

Pixelmatic/sensu-plugins-bandwidth-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

sensu-plugins-bandwidth-metrics

Sensu plugin to get metrics on the bandwidth usage. It is reading the output of ifstat. apt-get install ifstat or yum install ifstat

Please be sure you have the right version of ifstat with the output formatted like this:

           eth0  
     KB/s in  KB/s out  
       40.09     81.06  
       38.23     62.96  
       ...

Put that script into the folder /etc/sensu/plugins/ or any folder registered in the PATH.

To add it into your checks/metrics configuration add that JSON:

    "metric_bandwidth": {
      "type": "metric",
      "command": "metrics-bandwidth-usage.rb",
      "handlers": [ "metrics" ],
      "interval": 60,
      "subscribers": [
        "subscribers"
      ]
    }

Tested on Sensu 0.22.1

About

This plugin will gather metrics on the bandwidth usage for Sensu.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages