Skip to content

Commit

Permalink
Added collectd ping plugin configuration (#11).
Browse files Browse the repository at this point in the history
  • Loading branch information
anryko committed Oct 27, 2015
1 parent 4d09b4d commit 6b37e63
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ http://grafanaIP/dashboard/script/getdash.js?host=hostname&metric=load&time=7d
* [elasticsearch](https://github.com/phobos182/collectd-elasticsearch)
* [nginx](https://collectd.org/wiki/index.php/Plugin:nginx)
* [connstate](https://github.com/anryko/connstate-collectd-plugin)
* [ping](https://collectd.org/wiki/index.php/Plugin:Ping)

#### Supported metric groups
* system
Expand Down
18 changes: 17 additions & 1 deletion getdash.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ define(function getDashConf () {
'entropy',
'users',
'uptime',
'connstate'
'connstate',
'ping'
];
plugins.groups.middleware = [
'redis',
Expand Down Expand Up @@ -221,6 +222,21 @@ define(function getDashConf () {
};


// collectd ping plugin configuration
plugins.ping = new Plugin();

plugins.ping.ping = {
'graph': {
'ping_value': { }
},
'panel': {
'title': 'Ping',
"linewidth": 2,
'y_formats': [ 'ms' ]
}
};


// collectd connstate plugin configuration: https://github.com/anryko/connstate-collectd-plugin
plugins.connstate = new Plugin({ 'alias': 'connstate' });
plugins.connstate.config.merge = [ 'instance' ];
Expand Down

0 comments on commit 6b37e63

Please sign in to comment.