diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-02-10 00:03:07 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-02-10 00:03:07 +0200 |
commit | de48d035429efb585e608739a709262a3c637b79 (patch) | |
tree | c8ae141f6f254dcf08f42cad409db4c69feabb73 /charts.d/load_average.chart.sh | |
parent | 0fb27b897cba952be306e4da94f4e7e35cb31807 (diff) |
added internal plugin for reading /proc/loadavg and disables charts.d/load_average.chart.sh
Diffstat (limited to 'charts.d/load_average.chart.sh')
-rwxr-xr-x | charts.d/load_average.chart.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/charts.d/load_average.chart.sh b/charts.d/load_average.chart.sh index 8cc5af6ec6..257ea7cadc 100755 --- a/charts.d/load_average.chart.sh +++ b/charts.d/load_average.chart.sh @@ -3,6 +3,12 @@ load_average_update_every=5 load_priority=100 +# this is an example charts.d collector +# it is disabled by default. +# there is no point to enable it, since netdata already +# collects this information using its internal plugins. +load_average_enabled=0 + load_average_check() { # this should return: # - 0 to enable the chart @@ -15,6 +21,7 @@ load_average_check() { load_average_update_every=5 fi + [ ${load_average_enabled} -eq 0 ] && return 1 return 0 } |