diff --git a/README.md b/README.md index f69a397..c02b8f0 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/getdash.conf.js b/getdash.conf.js index 6895a24..7c5ce13 100644 --- a/getdash.conf.js +++ b/getdash.conf.js @@ -41,7 +41,8 @@ define(function getDashConf () { 'entropy', 'users', 'uptime', - 'connstate' + 'connstate', + 'ping' ]; plugins.groups.middleware = [ 'redis', @@ -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' ];