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/mem_apps.chart.sh | |
parent | 4bb4aaaa10a9325373f4039419581f74fa31aa62 (diff) |
added support for different update frequency per chart in charts.d.plugin
Diffstat (limited to 'charts.d/mem_apps.chart.sh')
-rwxr-xr-x | charts.d/mem_apps.chart.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/charts.d/mem_apps.chart.sh b/charts.d/mem_apps.chart.sh index 75618d748e..3afa4ad325 100755 --- a/charts.d/mem_apps.chart.sh +++ b/charts.d/mem_apps.chart.sh @@ -6,6 +6,8 @@ mem_apps_apps="netdata asterisk squid apache2 mysqld dovecot cupsd sshd named cl #mem_apps_pagesize="`getconf PAGESIZE`" #mem_apps_clockticks="`getconf CLK_TCK`" +mem_apps_update_every= + mem_apps_check() { # this should return: # - 0 to enable the chart @@ -23,7 +25,7 @@ mem_apps_bc_finalze= mem_apps_create() { - echo "CHART apps.mem '' 'Apps Memory' MB apps apps stacked 20000 $update_every" + echo "CHART apps.mem '' 'Apps Memory' MB apps apps stacked 20000 $mem_apps_update_every" local x= for x in $mem_apps_apps |