diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2014-06-01 12:52:58 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2014-06-01 12:52:58 +0300 |
commit | bdf5738fcf96e6ba89ca022594d66d73eefbf91c (patch) | |
tree | d5331eb2bd6d27a39d500e0fde44c37717226512 /charts.d/squid.chart.sh | |
parent | bf0a2ce9097485e1d970647a5165845a69d56153 (diff) |
report per second incremental values when update frequency is higher than a second
Diffstat (limited to 'charts.d/squid.chart.sh')
-rwxr-xr-x | charts.d/squid.chart.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/charts.d/squid.chart.sh b/charts.d/squid.chart.sh index a9bcea2a5d..e59a9c58da 100755 --- a/charts.d/squid.chart.sh +++ b/charts.d/squid.chart.sh @@ -19,22 +19,22 @@ squid_create() { # create the charts cat <<EOF CHART squid.clients_net '' "Squid Client Bandwidth" "kilobits / $squid_update_every sec" squid '' area 20001 $squid_update_every -DIMENSION client_http_kbytes_in in incremental 8 1 -DIMENSION client_http_kbytes_out out incremental -8 1 -DIMENSION client_http_hit_kbytes_out hits incremental -8 1 +DIMENSION client_http_kbytes_in in incremental 8 $((1 * squid_update_every)) +DIMENSION client_http_kbytes_out out incremental -8 $((1 * squid_update_every)) +DIMENSION client_http_hit_kbytes_out hits incremental -8 $((1 * squid_update_every)) CHART squid.clients_requests '' "Squid Client Requests" "requests / $squid_update_every sec" squid '' line 20003 $squid_update_every -DIMENSION client_http_requests requests incremental 1 1 -DIMENSION client_http_hits hits incremental 1 1 -DIMENSION client_http_errors errors incremental -1 1 +DIMENSION client_http_requests requests incremental 1 $((1 * squid_update_every)) +DIMENSION client_http_hits hits incremental 1 $((1 * squid_update_every)) +DIMENSION client_http_errors errors incremental -1 $((1 * squid_update_every)) CHART squid.servers_net '' "Squid Server Bandwidth" "kilobits / $squid_update_every sec" squid '' area 20002 $squid_update_every -DIMENSION server_all_kbytes_in in incremental 8 1 -DIMENSION server_all_kbytes_out out incremental -8 1 +DIMENSION server_all_kbytes_in in incremental 8 $((1 * squid_update_every)) +DIMENSION server_all_kbytes_out out incremental -8 $((1 * squid_update_every)) CHART squid.servers_requests '' "Squid Server Requests" "requests / $squid_update_every sec" squid '' line 20004 $squid_update_every -DIMENSION server_all_requests requests incremental 1 1 -DIMENSION server_all_errors errors incremental -1 1 +DIMENSION server_all_requests requests incremental 1 $((1 * squid_update_every)) +DIMENSION server_all_errors errors incremental -1 $((1 * squid_update_every)) EOF return 0 |