diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2014-05-30 21:21:39 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2014-05-30 21:21:39 +0300 |
commit | c666fc44f51dc7c488a74d90a8073de43ea93ac0 (patch) | |
tree | 211d0a1a4a7feb3b8540419a33d03a3f6b4baad1 /charts.d/load_average.chart.sh | |
parent | 4bb4aaaa10a9325373f4039419581f74fa31aa62 (diff) |
added support for different update frequency per chart in charts.d.plugin
Diffstat (limited to 'charts.d/load_average.chart.sh')
-rwxr-xr-x | charts.d/load_average.chart.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/charts.d/load_average.chart.sh b/charts.d/load_average.chart.sh index e2c72494a9..6e5d5e0572 100755 --- a/charts.d/load_average.chart.sh +++ b/charts.d/load_average.chart.sh @@ -1,5 +1,7 @@ #!/bin/sh +load_average_update_every= + load_average_check() { # this should return: # - 0 to enable the chart @@ -11,7 +13,7 @@ load_average_check() { load_average_create() { # create a chart with 3 dimensions cat <<EOF -CHART example.load '' "System Load Average" "load" load load line 500 $update_every +CHART example.load '' "System Load Average" "load" load load line 500 $load_average_update_every DIMENSION load1 '1 min' absolute 1 100 DIMENSION load5 '5 mins' absolute 1 100 DIMENSION load15 '15 mins' absolute 1 100 |