summaryrefslogtreecommitdiffstats
path: root/charts.d/cpu_apps.chart.sh
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2014-05-30 21:21:39 +0300
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2014-05-30 21:21:39 +0300
commitc666fc44f51dc7c488a74d90a8073de43ea93ac0 (patch)
tree211d0a1a4a7feb3b8540419a33d03a3f6b4baad1 /charts.d/cpu_apps.chart.sh
parent4bb4aaaa10a9325373f4039419581f74fa31aa62 (diff)
added support for different update frequency per chart in charts.d.plugin
Diffstat (limited to 'charts.d/cpu_apps.chart.sh')
-rwxr-xr-xcharts.d/cpu_apps.chart.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/charts.d/cpu_apps.chart.sh b/charts.d/cpu_apps.chart.sh
index 1733b7dce4..735ac30b3e 100755
--- a/charts.d/cpu_apps.chart.sh
+++ b/charts.d/cpu_apps.chart.sh
@@ -6,6 +6,8 @@ cpu_apps_apps="netdata asterisk squid apache2 mysqld dovecot cupsd sshd named cl
#cpu_apps_pagesize="`getconf PAGESIZE`"
cpu_apps_clockticks="`getconf CLK_TCK`"
+cpu_apps_update_every=60
+
cpu_apps_check() {
# this should return:
# - 0 to enable the chart
@@ -23,7 +25,7 @@ cpu_apps_bc_finalze=
cpu_apps_create() {
- echo "CHART apps.cpu '' 'Apps CPU' 'milliseconds/s' apps apps stacked 20001 $update_every"
+ echo "CHART apps.cpu '' 'Apps CPU' 'milliseconds / $cpu_apps_update_every sec' apps apps stacked 20001 $cpu_apps_update_every"
local x=
for x in $cpu_apps_apps