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/example.chart.sh | |
parent | 4bb4aaaa10a9325373f4039419581f74fa31aa62 (diff) |
added support for different update frequency per chart in charts.d.plugin
Diffstat (limited to 'charts.d/example.chart.sh')
-rwxr-xr-x | charts.d/example.chart.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/charts.d/example.chart.sh b/charts.d/example.chart.sh index 369769c11d..0f6251ad80 100755 --- a/charts.d/example.chart.sh +++ b/charts.d/example.chart.sh @@ -1,5 +1,7 @@ #!/bin/sh +example_update_every= + example_check() { # this should return: # - 0 to enable the chart @@ -11,7 +13,7 @@ example_check() { example_create() { # create the chart with 3 dimensions cat <<EOF -CHART example.random '' "Random Numbers Stacked Chart" "% of random numbers" random random stacked 5000 $update_every +CHART example.random '' "Random Numbers Stacked Chart" "% of random numbers" random random stacked 5000 $example_update_every DIMENSION random1 '' percentage-of-absolute-row 1 1 DIMENSION random2 '' percentage-of-absolute-row 1 1 DIMENSION random3 '' percentage-of-absolute-row 1 1 |