]> arthur.barton.de Git - netdata.git/commitdiff
fixed a bug in the incremental calculations where the exact duration (in nanoseconds...
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Wed, 25 Nov 2015 23:30:57 +0000 (01:30 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Wed, 25 Nov 2015 23:30:57 +0000 (01:30 +0200)
22 files changed:
charts.d/airsearches.chart.sh
charts.d/cpu_apps.chart.sh
charts.d/crsproxy.chart.sh
charts.d/mysql.chart.sh
charts.d/opensips.chart.sh
charts.d/squid.chart.sh
src/apps_plugin.c
src/plugin_checks.c
src/plugin_proc.c
src/plugin_tc.c
src/proc_diskstats.c
src/proc_interrupts.c
src/proc_net_dev.c
src/proc_net_ip_vs_stats.c
src/proc_net_netstat.c
src/proc_net_rpc_nfsd.c
src/proc_net_snmp.c
src/proc_net_stat_conntrack.c
src/proc_stat.c
src/proc_vmstat.c
src/rrd.c
src/unit_test.c

index c3ff22f3997b5cd8c94abe262b5e12cab64f5354..449b14255adb810021137cf5fe0fa852fe85783f 100755 (executable)
@@ -57,7 +57,7 @@ airsearches_create() {
        echo "CHART airsearches.affiliates '' 'Air Searches per affiliate' 'requests / min' airsearches '' stacked 20000 $airsearches_update_every"
        for x in $airsearches_cmds
        do
-               echo "DIMENSION $x '' incremental 60 $airsearches_update_every"
+               echo "DIMENSION $x '' incremental 60 1"
        done
 
        return 0
index d0165ad3310b3875dfe65523a351716d6b74606b..879cbbddd32c58a1d5c4ebdadf1f51154897ef8e 100755 (executable)
@@ -34,7 +34,7 @@ cpu_apps_create() {
        local x=
        for x in $cpu_apps_apps
        do
-               echo "DIMENSION $x $x incremental 1000 $((cpu_apps_clockticks * cpu_apps_update_every))"
+               echo "DIMENSION $x $x incremental 1000 $cpu_apps_clockticks"
 
                # this string is needed later in the update() function
                # to finalize the instructions for the bc command
index f3f9c6df736ca5f4b9f624d7acc4c24a2571c2f3..fc5358b436a593b887b86359fcc1d0b659ed5eb1 100755 (executable)
@@ -54,18 +54,18 @@ DIMENSION web '' absolute 1 1
 DIMENSION native '' absolute 1 1
 DIMENSION virtual '' absolute 1 1
 CHART crsproxy.requests '' "CRS Proxy Requests Rate" "requests / min" crsproxy '' area 20001 $crsproxy_update_every
-DIMENSION web '' incremental 60 $crsproxy_update_every
-DIMENSION native '' incremental -60 $crsproxy_update_every
+DIMENSION web '' incremental 60 1
+DIMENSION native '' incremental -60 1
 CHART crsproxy.clients '' "CRS Proxy Clients Rate" "clients / min" crsproxy '' area 20010 $crsproxy_update_every
-DIMENSION web '' incremental 60 $crsproxy_update_every
-DIMENSION native '' incremental -60 $crsproxy_update_every
-DIMENSION virtual '' incremental 60 $crsproxy_update_every
+DIMENSION web '' incremental 60 1
+DIMENSION native '' incremental -60 1
+DIMENSION virtual '' incremental 60 1
 CHART crsproxy.replies '' "CRS Replies Rate" "replies / min" crsproxy '' area 20020 $crsproxy_update_every
-DIMENSION ok '' incremental 60 $crsproxy_update_every
-DIMENSION failed '' incremental -60 $crsproxy_update_every
+DIMENSION ok '' incremental 60 1
+DIMENSION failed '' incremental -60 1
 CHART crsproxy.bconnections '' "Back-End Connections Rate" "connections / min" crsproxy '' area 20030 $crsproxy_update_every
-DIMENSION ok '' incremental 60 $crsproxy_update_every
-DIMENSION failed '' incremental -60 $crsproxy_update_every
+DIMENSION ok '' incremental 60 1
+DIMENSION failed '' incremental -60 1
 EOF
 
        local x=
index ffd635ff8eb0d34c854bfdc53edcb7864c9ba1cc..dda1e568b9a9dab3ef50f2709c89128323a58456 100755 (executable)
@@ -164,76 +164,76 @@ mysql_create() {
        do
                cat <<EOF
 CHART mysql_$m.bandwidth '' "mysql Bandwidth" "kilobits/s" mysql_$m mysql area 20001 $mysql_update_every
-DIMENSION Bytes_received in incremental 8 $((1024 * mysql_update_every))
-DIMENSION Bytes_sent out incremental -8 $((1024 * mysql_update_every))
+DIMENSION Bytes_received in incremental 8 1024
+DIMENSION Bytes_sent out incremental -8 1024
 
 CHART mysql_$m.queries '' "mysql Queries" "queries/s" mysql_$m mysql line 20002 $mysql_update_every
-DIMENSION Queries queries incremental 1 $((1 * mysql_update_every))
-DIMENSION Questions questions incremental 1 $((1 * mysql_update_every))
-DIMENSION Slow_queries slow_queries incremental -1 $((1 * mysql_update_every))
+DIMENSION Queries queries incremental 1 1
+DIMENSION Questions questions incremental 1 1
+DIMENSION Slow_queries slow_queries incremental -1 1
 
 CHART mysql_$m.handlers '' "mysql Handlers" "handlers/s" mysql_$m mysql line 20003 $mysql_update_every
-DIMENSION Handler_commit commit incremental 1 $((1 * mysql_update_every))
-DIMENSION Handler_delete delete incremental 1 $((1 * mysql_update_every))
-DIMENSION Handler_prepare prepare incremental 1 $((1 * mysql_update_every))
-DIMENSION Handler_read_first read_first incremental 1 $((1 * mysql_update_every))
-DIMENSION Handler_read_key read_key incremental 1 $((1 * mysql_update_every))
-DIMENSION Handler_read_next read_next incremental 1 $((1 * mysql_update_every))
-DIMENSION Handler_read_prev read_prev incremental 1 $((1 * mysql_update_every))
-DIMENSION Handler_read_rnd read_rnd incremental 1 $((1 * mysql_update_every))
-DIMENSION Handler_read_rnd_next read_rnd_next incremental 1 $((1 * mysql_update_every))
-DIMENSION Handler_rollback rollback incremental 1 $((1 * mysql_update_every))
-DIMENSION Handler_savepoint savepoint incremental 1 $((1 * mysql_update_every))
-DIMENSION Handler_savepoint_rollback savepoint_rollback incremental 1 $((1 * mysql_update_every))
-DIMENSION Handler_update update incremental 1 $((1 * mysql_update_every))
-DIMENSION Handler_write write incremental 1 $((1 * mysql_update_every))
+DIMENSION Handler_commit commit incremental 1 1
+DIMENSION Handler_delete delete incremental 1 1
+DIMENSION Handler_prepare prepare incremental 1 1
+DIMENSION Handler_read_first read_first incremental 1 1
+DIMENSION Handler_read_key read_key incremental 1 1
+DIMENSION Handler_read_next read_next incremental 1 1
+DIMENSION Handler_read_prev read_prev incremental 1 1
+DIMENSION Handler_read_rnd read_rnd incremental 1 1
+DIMENSION Handler_read_rnd_next read_rnd_next incremental 1 1
+DIMENSION Handler_rollback rollback incremental 1 1
+DIMENSION Handler_savepoint savepoint incremental 1 1
+DIMENSION Handler_savepoint_rollback savepoint_rollback incremental 1 1
+DIMENSION Handler_update update incremental 1 1
+DIMENSION Handler_write write incremental 1 1
 
 CHART mysql_$m.table_locks '' "mysql Tables Locks" "locks/s" mysql_$m mysql line 20004 $mysql_update_every
-DIMENSION Table_locks_immediate immediate incremental 1 $((1 * mysql_update_every))
-DIMENSION Table_locks_waited waited incremental -1 $((1 * mysql_update_every))
+DIMENSION Table_locks_immediate immediate incremental 1 1
+DIMENSION Table_locks_waited waited incremental -1 1
 
 CHART mysql_$m.join_issues '' "mysql Select Join Issues" "joins/s" mysql_$m mysql line 20005 $mysql_update_every
-DIMENSION Select_full_join full_join incremental 1 $((1 * mysql_update_every))
-DIMENSION Select_full_range_join full_range_join incremental 1 $((1 * mysql_update_every))
-DIMENSION Select_range range incremental 1 $((1 * mysql_update_every))
-DIMENSION Select_range_check range_check incremental 1 $((1 * mysql_update_every))
-DIMENSION Select_scan scan incremental 1 $((1 * mysql_update_every))
+DIMENSION Select_full_join full_join incremental 1 1
+DIMENSION Select_full_range_join full_range_join incremental 1 1
+DIMENSION Select_range range incremental 1 1
+DIMENSION Select_range_check range_check incremental 1 1
+DIMENSION Select_scan scan incremental 1 1
 
 CHART mysql_$m.sort_issues '' "mysql Sort Issues" "issues/s" mysql_$m mysql line 20006 $mysql_update_every
-DIMENSION Sort_merge_passes merge_passes incremental 1 $((1 * mysql_update_every))
-DIMENSION Sort_range range incremental 1 $((1 * mysql_update_every))
-DIMENSION Sort_scan scan incremental 1 $((1 * mysql_update_every))
+DIMENSION Sort_merge_passes merge_passes incremental 1 1
+DIMENSION Sort_range range incremental 1 1
+DIMENSION Sort_scan scan incremental 1 1
 
 CHART mysql_$m.tmp '' "mysql Tmp Operations" "counter" mysql_$m mysql line 20007 $mysql_update_every
-DIMENSION Created_tmp_disk_tables disk_tables incremental 1 $((1 * mysql_update_every))
-DIMENSION Created_tmp_files files incremental 1 $((1 * mysql_update_every))
-DIMENSION Created_tmp_tables tables incremental 1 $((1 * mysql_update_every))
+DIMENSION Created_tmp_disk_tables disk_tables incremental 1 1
+DIMENSION Created_tmp_files files incremental 1 1
+DIMENSION Created_tmp_tables tables incremental 1 1
 
 CHART mysql_$m.connections '' "mysql Connections" "connections/s" mysql_$m mysql line 20009 $mysql_update_every
-DIMENSION Connections all incremental 1 $((1 * mysql_update_every))
-DIMENSION Aborted_connects aborded incremental 1 $((1 * mysql_update_every))
+DIMENSION Connections all incremental 1 1
+DIMENSION Aborted_connects aborded incremental 1 1
 
 CHART mysql_$m.binlog_cache '' "mysql Binlog Cache" "transactions/s" mysql_$m mysql line 20010 $mysql_update_every
-DIMENSION Binlog_cache_disk_use disk incremental 1 $((1 * mysql_update_every))
-DIMENSION Binlog_cache_use all incremental 1 $((1 * mysql_update_every))
+DIMENSION Binlog_cache_disk_use disk incremental 1 1
+DIMENSION Binlog_cache_use all incremental 1 1
 
 CHART mysql_$m.threads '' "mysql Threads" "threads" mysql_$m mysql line 20012 $mysql_update_every
 DIMENSION Threads_connected connected absolute 1 1
-DIMENSION Threads_created created incremental 1 $((1 * mysql_update_every))
+DIMENSION Threads_created created incremental 1 1
 DIMENSION Threads_cached cached absolute -1 1
-DIMENSION Threads_running running absolute 1 $((1 * mysql_update_every))
+DIMENSION Threads_running running absolute 1 1
 
 CHART mysql_$m.thread_cache_misses '' "mysql Threads Cache Misses" "misses" mysql_$m mysql area 20013 $mysql_update_every
 DIMENSION misses misses absolute 1 100
 
 CHART mysql_$m.innodb_io '' "mysql InnoDB I/O Bandwidth" "kilobytes/s" mysql_$m mysql area 20014 $mysql_update_every
-DIMENSION Innodb_data_read read incremental 1 $((1000 * mysql_update_every))
-DIMENSION Innodb_data_written write incremental -1 $((1000 * mysql_update_every))
+DIMENSION Innodb_data_read read incremental 1 1024
+DIMENSION Innodb_data_written write incremental -1 1024
 
 CHART mysql_$m.innodb_io_ops '' "mysql InnoDB I/O Operations" "operations/s" mysql_$m mysql line 20015 $mysql_update_every
-DIMENSION Innodb_data_reads reads incremental 1 $((1 * mysql_update_every))
-DIMENSION Innodb_data_writes writes incremental -1 $((1 * mysql_update_every))
-DIMENSION Innodb_data_fsyncs fsyncs incremental 1 $((1 * mysql_update_every))
+DIMENSION Innodb_data_reads reads incremental 1 1
+DIMENSION Innodb_data_writes writes incremental -1 1
+DIMENSION Innodb_data_fsyncs fsyncs incremental 1 1
 
 CHART mysql_$m.innodb_io_pending_ops '' "mysql InnoDB Pending I/O Operations" "operations/s" mysql_$m mysql line 20015 $mysql_update_every
 DIMENSION Innodb_data_pending_reads reads absolute 1 1
@@ -241,26 +241,26 @@ DIMENSION Innodb_data_pending_writes writes absolute -1 1
 DIMENSION Innodb_data_pending_fsyncs fsyncs absolute 1 1
 
 CHART mysql_$m.innodb_log '' "mysql InnoDB Log Operations" "operations/s" mysql_$m mysql line 20016 $mysql_update_every
-DIMENSION Innodb_log_waits waits incremental 1 $((1 * mysql_update_every))
-DIMENSION Innodb_log_write_requests write_requests incremental -1 $((1 * mysql_update_every))
-DIMENSION Innodb_log_writes writes incremental -1 $((1 * mysql_update_every))
+DIMENSION Innodb_log_waits waits incremental 1 1
+DIMENSION Innodb_log_write_requests write_requests incremental -1 1
+DIMENSION Innodb_log_writes writes incremental -1 1
 
 CHART mysql_$m.innodb_os_log '' "mysql InnoDB OS Log Operations" "operations/s" mysql_$m mysql line 20017 $mysql_update_every
-DIMENSION Innodb_os_log_fsyncs fsyncs incremental 1 $((1 * mysql_update_every))
-DIMENSION Innodb_os_log_pending_fsyncs pending_fsyncs incremental 1 $((1 * mysql_update_every))
-DIMENSION Innodb_os_log_pending_writes pending_writes incremental -1 $((1 * mysql_update_every))
+DIMENSION Innodb_os_log_fsyncs fsyncs incremental 1 1
+DIMENSION Innodb_os_log_pending_fsyncs pending_fsyncs incremental 1 1
+DIMENSION Innodb_os_log_pending_writes pending_writes incremental -1 1
 
 CHART mysql_$m.innodb_os_log_io '' "mysql InnoDB OS Log Bandwidth" "kilobytes/s" mysql_$m mysql area 20018 $mysql_update_every
-DIMENSION Innodb_os_log_written write incremental -1 $((1000 * mysql_update_every))
+DIMENSION Innodb_os_log_written write incremental -1 1024
 
 CHART mysql_$m.innodb_cur_row_lock '' "mysql InnoDB Current Row Locks" "operations" mysql_$m mysql area 20019 $mysql_update_every
 DIMENSION Innodb_row_lock_current_waits current_waits absolute 1 1
 
 CHART mysql_$m.innodb_rows '' "mysql InnoDB Row Operations" "operations/s" mysql_$m mysql area 20020 $mysql_update_every
-DIMENSION Innodb_rows_read read incremental 1 $((1 * mysql_update_every))
-DIMENSION Innodb_rows_deleted deleted incremental -1 $((1 * mysql_update_every))
-DIMENSION Innodb_rows_inserted inserted incremental 1 $((1 * mysql_update_every))
-DIMENSION Innodb_rows_updated updated incremental -1 $((1 * mysql_update_every))
+DIMENSION Innodb_rows_read read incremental 1 1
+DIMENSION Innodb_rows_deleted deleted incremental -1 1
+DIMENSION Innodb_rows_inserted inserted incremental 1 1
+DIMENSION Innodb_rows_updated updated incremental -1 1
 
 EOF
 
@@ -268,8 +268,8 @@ EOF
                then
                cat <<EOF
 CHART mysql_$m.binlog_stmt_cache '' "mysql Binlog Statement Cache" "statements/s" mysql_$m mysql line 20011 $mysql_update_every
-DIMENSION Binlog_stmt_cache_disk_use disk incremental 1 $((1 * mysql_update_every))
-DIMENSION Binlog_stmt_cache_use all incremental 1 $((1 * mysql_update_every))
+DIMENSION Binlog_stmt_cache_disk_use disk incremental 1 1
+DIMENSION Binlog_stmt_cache_use all incremental 1 1
 EOF
        fi
 
@@ -277,12 +277,12 @@ EOF
                then
                cat <<EOF
 CHART mysql_$m.connection_errors '' "mysql Connection Errors" "connections/s" mysql_$m mysql line 20008 $mysql_update_every
-DIMENSION Connection_errors_accept accept incremental 1 $((1 * mysql_update_every))
-DIMENSION Connection_errors_internal internal incremental 1 $((1 * mysql_update_every))
-DIMENSION Connection_errors_max_connections max incremental 1 $((1 * mysql_update_every))
-DIMENSION Connection_errors_peer_addr peer_addr incremental 1 $((1 * mysql_update_every))
-DIMENSION Connection_errors_select select incremental 1 $((1 * mysql_update_every))
-DIMENSION Connection_errors_tcpwrap tcpwrap incremental 1 $((1 * mysql_update_every))
+DIMENSION Connection_errors_accept accept incremental 1 1
+DIMENSION Connection_errors_internal internal incremental 1 1
+DIMENSION Connection_errors_max_connections max incremental 1 1
+DIMENSION Connection_errors_peer_addr peer_addr incremental 1 1
+DIMENSION Connection_errors_select select incremental 1 1
+DIMENSION Connection_errors_tcpwrap tcpwrap incremental 1 1
 EOF
        fi
 
index 372197ee3a3a35d3c7b42cf4569367cec8dc4dba..e6ae7a8a73e5afa09d8b436bfa9ec3d3c5887beb 100755 (executable)
@@ -52,79 +52,79 @@ CHART opensips.users '' "OpenSIPS Users" "users" opensips '' line 20002 $opensip
 DIMENSION usrloc_registered_users registered absolute 1 1
 DIMENSION usrloc_location_users location absolute 1 1
 DIMENSION usrloc_location_contacts contacts absolute 1 1
-DIMENSION usrloc_location_expires expires incremental -1 $((1 * opensips_update_every))
+DIMENSION usrloc_location_expires expires incremental -1 1
 
 CHART opensips.registrar '' "OpenSIPS Registrar" "registrations/s" opensips '' line 20003 $opensips_update_every
-DIMENSION registrar_accepted_regs accepted incremental 1 $((1 * opensips_update_every))
-DIMENSION registrar_rejected_regs rejected incremental -1 $((1 * opensips_update_every))
+DIMENSION registrar_accepted_regs accepted incremental 1 1
+DIMENSION registrar_rejected_regs rejected incremental -1 1
 
 CHART opensips.transactions '' "OpenSIPS Transactions" "transactions/s" opensips '' line 20004 $opensips_update_every
-DIMENSION tm_UAS_transactions UAS incremental 1 $((1 * opensips_update_every))
-DIMENSION tm_UAC_transactions UAC incremental -1 $((1 * opensips_update_every))
+DIMENSION tm_UAS_transactions UAS incremental 1 1
+DIMENSION tm_UAC_transactions UAC incremental -1 1
 
 CHART opensips.core_rcv '' "OpenSIPS Core Receives" "queries/s" opensips '' line 20005 $opensips_update_every
-DIMENSION core_rcv_requests requests incremental 1 $((1 * opensips_update_every))
-DIMENSION core_rcv_replies replies incremental -1 $((1 * opensips_update_every))
+DIMENSION core_rcv_requests requests incremental 1 1
+DIMENSION core_rcv_replies replies incremental -1 1
 
 CHART opensips.core_fwd '' "OpenSIPS Core Forwards" "queries/s" opensips '' line 20006 $opensips_update_every
-DIMENSION core_fwd_requests requests incremental 1 $((1 * opensips_update_every))
-DIMENSION core_fwd_replies replies incremental -1 $((1 * opensips_update_every))
+DIMENSION core_fwd_requests requests incremental 1 1
+DIMENSION core_fwd_replies replies incremental -1 1
 
 CHART opensips.core_drop '' "OpenSIPS Core Drops" "queries/s" opensips '' line 20007 $opensips_update_every
-DIMENSION core_drop_requests requests incremental 1 $((1 * opensips_update_every))
-DIMENSION core_drop_replies replies incremental -1 $((1 * opensips_update_every))
+DIMENSION core_drop_requests requests incremental 1 1
+DIMENSION core_drop_replies replies incremental -1 1
 
 CHART opensips.core_err '' "OpenSIPS Core Errors" "queries/s" opensips '' line 20008 $opensips_update_every
-DIMENSION core_err_requests requests incremental 1 $((1 * opensips_update_every))
-DIMENSION core_err_replies replies incremental -1 $((1 * opensips_update_every))
+DIMENSION core_err_requests requests incremental 1 1
+DIMENSION core_err_replies replies incremental -1 1
 
 CHART opensips.core_bad '' "OpenSIPS Core Bad" "queries/s" opensips '' line 20009 $opensips_update_every
-DIMENSION core_bad_URIs_rcvd bad_URIs_rcvd incremental 1 $((1 * opensips_update_every))
-DIMENSION core_unsupported_methods unsupported_methods incremental 1 $((1 * opensips_update_every))
-DIMENSION core_bad_msg_hdr bad_msg_hdr incremental 1 $((1 * opensips_update_every))
+DIMENSION core_bad_URIs_rcvd bad_URIs_rcvd incremental 1 1
+DIMENSION core_unsupported_methods unsupported_methods incremental 1 1
+DIMENSION core_bad_msg_hdr bad_msg_hdr incremental 1 1
 
 CHART opensips.tm_replies '' "OpenSIPS TM Replies" "replies/s" opensips '' line 20010 $opensips_update_every
-DIMENSION tm_received_replies received incremental 1 $((1 * opensips_update_every))
-DIMENSION tm_relayed_replies relayed incremental 1 $((1 * opensips_update_every))
-DIMENSION tm_local_replies local incremental 1 $((1 * opensips_update_every))
+DIMENSION tm_received_replies received incremental 1 1
+DIMENSION tm_relayed_replies relayed incremental 1 1
+DIMENSION tm_local_replies local incremental 1 1
 
 CHART opensips.transactions_status '' "OpenSIPS Transactions Status" "transactions/s" opensips '' line 20011 $opensips_update_every
-DIMENSION tm_2xx_transactions 2xx incremental 1 $((1 * opensips_update_every))
-DIMENSION tm_3xx_transactions 3xx incremental 1 $((1 * opensips_update_every))
-DIMENSION tm_4xx_transactions 4xx incremental 1 $((1 * opensips_update_every))
-DIMENSION tm_5xx_transactions 5xx incremental 1 $((1 * opensips_update_every))
-DIMENSION tm_6xx_transactions 6xx incremental 1 $((1 * opensips_update_every))
+DIMENSION tm_2xx_transactions 2xx incremental 1 1
+DIMENSION tm_3xx_transactions 3xx incremental 1 1
+DIMENSION tm_4xx_transactions 4xx incremental 1 1
+DIMENSION tm_5xx_transactions 5xx incremental 1 1
+DIMENSION tm_6xx_transactions 6xx incremental 1 1
 
 CHART opensips.transactions_inuse '' "OpenSIPS InUse Transactions" "transactions" opensips '' line 20012 $opensips_update_every
 DIMENSION tm_inuse_transactions inuse absolute 1 1
 
 CHART opensips.sl_replies '' "OpenSIPS SL Replies" "replies/s" opensips '' line 20013 $opensips_update_every
-DIMENSION sl_1xx_replies 1xx incremental 1 $((1 * opensips_update_every))
-DIMENSION sl_2xx_replies 2xx incremental 1 $((1 * opensips_update_every))
-DIMENSION sl_3xx_replies 3xx incremental 1 $((1 * opensips_update_every))
-DIMENSION sl_4xx_replies 4xx incremental 1 $((1 * opensips_update_every))
-DIMENSION sl_5xx_replies 5xx incremental 1 $((1 * opensips_update_every))
-DIMENSION sl_6xx_replies 6xx incremental 1 $((1 * opensips_update_every))
-DIMENSION sl_sent_replies sent incremental 1 $((1 * opensips_update_every))
-DIMENSION sl_sent_err_replies error incremental 1 $((1 * opensips_update_every))
-DIMENSION sl_received_ACKs ACKed incremental 1 $((1 * opensips_update_every))
+DIMENSION sl_1xx_replies 1xx incremental 1 1
+DIMENSION sl_2xx_replies 2xx incremental 1 1
+DIMENSION sl_3xx_replies 3xx incremental 1 1
+DIMENSION sl_4xx_replies 4xx incremental 1 1
+DIMENSION sl_5xx_replies 5xx incremental 1 1
+DIMENSION sl_6xx_replies 6xx incremental 1 1
+DIMENSION sl_sent_replies sent incremental 1 1
+DIMENSION sl_sent_err_replies error incremental 1 1
+DIMENSION sl_received_ACKs ACKed incremental 1 1
 
 CHART opensips.dialogs '' "OpenSIPS Dialogs" "dialogs/s" opensips '' line 20014 $opensips_update_every
-DIMENSION dialog_processed_dialogs processed incremental 1 $((1 * opensips_update_every))
-DIMENSION dialog_expired_dialogs expired incremental 1 $((1 * opensips_update_every))
-DIMENSION dialog_failed_dialogs failed incremental -1 $((1 * opensips_update_every))
+DIMENSION dialog_processed_dialogs processed incremental 1 1
+DIMENSION dialog_expired_dialogs expired incremental 1 1
+DIMENSION dialog_failed_dialogs failed incremental -1 1
 
 CHART opensips.net_waiting '' "OpenSIPS Network Waiting" "kilobytes" opensips '' line 20015 $opensips_update_every
 DIMENSION net_waiting_udp UDP absolute 1 1024
 DIMENSION net_waiting_tcp TCP absolute 1 1024
 
 CHART opensips.uri_checks '' "OpenSIPS URI Checks" "checks / sec" opensips '' line 20016 $opensips_update_every
-DIMENSION uri_positive_checks positive incremental 1 $((1 * opensips_update_every))
-DIMENSION uri_negative_checks negative incremental -1 $((1 * opensips_update_every))
+DIMENSION uri_positive_checks positive incremental 1 1
+DIMENSION uri_negative_checks negative incremental -1 1
 
 CHART opensips.traces '' "OpenSIPS Traces" "traces / sec" opensips '' line 20017 $opensips_update_every
-DIMENSION siptrace_traced_requests requests incremental 1 $((1 * opensips_update_every))
-DIMENSION siptrace_traced_replies replies incremental -1 $((1 * opensips_update_every))
+DIMENSION siptrace_traced_requests requests incremental 1 1
+DIMENSION siptrace_traced_replies replies incremental -1 1
 
 CHART opensips.shmem '' "OpenSIPS Shared Memory" "kilobytes" opensips '' line 20018 $opensips_update_every
 DIMENSION shmem_total_size total absolute 1 1024
index 55ece266ea6a3ec50cc2a582ac3c0eb6bbdad77f..08a61ed754d39f1b5eb094df8268a469fbf092c5 100755 (executable)
@@ -70,22 +70,22 @@ squid_create() {
        # create the charts
        cat <<EOF
 CHART squid.clients_net '' "Squid Client Bandwidth" "kilobits / sec" squid '' area 20001 $squid_update_every
-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))
+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
 
 CHART squid.clients_requests '' "Squid Client Requests" "requests / sec" squid '' line 20003 $squid_update_every
-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))
+DIMENSION client_http_requests requests incremental 1 1
+DIMENSION client_http_hits hits incremental 1 1
+DIMENSION client_http_errors errors incremental -1 1
 
 CHART squid.servers_net '' "Squid Server Bandwidth" "kilobits / sec" squid '' area 20002 $squid_update_every
-DIMENSION server_all_kbytes_in in incremental 8 $((1 * squid_update_every))
-DIMENSION server_all_kbytes_out out incremental -8 $((1 * squid_update_every))
+DIMENSION server_all_kbytes_in in incremental 8 1
+DIMENSION server_all_kbytes_out out incremental -8 1
 
 CHART squid.servers_requests '' "Squid Server Requests" "requests / sec" squid '' line 20004 $squid_update_every
-DIMENSION server_all_requests requests incremental 1 $((1 * squid_update_every))
-DIMENSION server_all_errors errors incremental -1 $((1 * squid_update_every))
+DIMENSION server_all_requests requests incremental 1 1
+DIMENSION server_all_errors errors incremental -1 1
 EOF
        
        return 0
index 9b761c65b2d4524b76152f2983a7668eccb86142..e3ec2a20a4bbc0a30260d2aaed74b24a6f7bc975 100755 (executable)
@@ -1743,7 +1743,7 @@ void show_charts(void)
        for (w = target_root; w ; w = w->next) {
                if(w->target || (!w->processes && !w->exposed)) continue;
 
-               fprintf(stdout, "DIMENSION %s '' incremental 100 %llu %s\n", w->name, (unsigned long long)(Hertz * update_every), w->hidden?"hidden,noreset":"noreset");
+               fprintf(stdout, "DIMENSION %s '' incremental 100 %llu %s\n", w->name, (unsigned long long)(Hertz), w->hidden?"hidden,noreset":"noreset");
        }
 
        fprintf(stdout, "CHART apps.mem '' 'Apps Dedicated Memory (w/o shared)' 'MB' apps apps stacked 20003 %d\n", update_every);
@@ -1771,56 +1771,56 @@ void show_charts(void)
        for (w = target_root; w ; w = w->next) {
                if(w->target || (!w->processes && !w->exposed)) continue;
 
-               fprintf(stdout, "DIMENSION %s '' incremental 100 %llu noreset\n", w->name, Hertz * processors * update_every);
+               fprintf(stdout, "DIMENSION %s '' incremental 100 %llu noreset\n", w->name, Hertz * processors);
        }
 
        fprintf(stdout, "CHART apps.cpu_system '' 'Apps CPU System Time (%ld%% = %ld core%s)' 'cpu time %%' apps none stacked 20021 %d\n", (processors * 100), processors, (processors>1)?"s":"", update_every);
        for (w = target_root; w ; w = w->next) {
                if(w->target || (!w->processes && !w->exposed)) continue;
 
-               fprintf(stdout, "DIMENSION %s '' incremental 100 %llu noreset\n", w->name, Hertz * processors * update_every);
+               fprintf(stdout, "DIMENSION %s '' incremental 100 %llu noreset\n", w->name, Hertz * processors);
        }
 
        fprintf(stdout, "CHART apps.major_faults '' 'Apps Major Page Faults (swaps in)' 'page faults/s' apps apps stacked 20010 %d\n", update_every);
        for (w = target_root; w ; w = w->next) {
                if(w->target || (!w->processes && !w->exposed)) continue;
 
-               fprintf(stdout, "DIMENSION %s '' incremental 1 %d noreset\n", w->name, update_every);
+               fprintf(stdout, "DIMENSION %s '' incremental 1 1 noreset\n", w->name);
        }
 
        fprintf(stdout, "CHART apps.minor_faults '' 'Apps Minor Page Faults' 'page faults/s' apps none stacked 20011 %d\n", update_every);
        for (w = target_root; w ; w = w->next) {
                if(w->target || (!w->processes && !w->exposed)) continue;
 
-               fprintf(stdout, "DIMENSION %s '' incremental 1 %d noreset\n", w->name, update_every);
+               fprintf(stdout, "DIMENSION %s '' incremental 1 1 noreset\n", w->name);
        }
 
        fprintf(stdout, "CHART apps.lreads '' 'Apps Disk Logical Reads' 'kilobytes/s' apps none stacked 20042 %d\n", update_every);
        for (w = target_root; w ; w = w->next) {
                if(w->target || (!w->processes && !w->exposed)) continue;
 
-               fprintf(stdout, "DIMENSION %s '' incremental 1 %d noreset\n", w->name, 1024 * update_every);
+               fprintf(stdout, "DIMENSION %s '' incremental 1 %d noreset\n", w->name, 1024);
        }
 
        fprintf(stdout, "CHART apps.lwrites '' 'Apps I/O Logical Writes' 'kilobytes/s' apps none stacked 20042 %d\n", update_every);
        for (w = target_root; w ; w = w->next) {
                if(w->target || (!w->processes && !w->exposed)) continue;
 
-               fprintf(stdout, "DIMENSION %s '' incremental 1 %d noreset\n", w->name, 1024 * update_every);
+               fprintf(stdout, "DIMENSION %s '' incremental 1 %d noreset\n", w->name, 1024);
        }
 
        fprintf(stdout, "CHART apps.preads '' 'Apps Disk Reads' 'kilobytes/s' apps apps stacked 20002 %d\n", update_every);
        for (w = target_root; w ; w = w->next) {
                if(w->target || (!w->processes && !w->exposed)) continue;
 
-               fprintf(stdout, "DIMENSION %s '' incremental 1 %d noreset\n", w->name, 1024 * update_every);
+               fprintf(stdout, "DIMENSION %s '' incremental 1 %d noreset\n", w->name, 1024);
        }
 
        fprintf(stdout, "CHART apps.pwrites '' 'Apps Disk Writes' 'kilobytes/s' apps apps stacked 20002 %d\n", update_every);
        for (w = target_root; w ; w = w->next) {
                if(w->target || (!w->processes && !w->exposed)) continue;
 
-               fprintf(stdout, "DIMENSION %s '' incremental 1 %d noreset\n", w->name, 1024 * update_every);
+               fprintf(stdout, "DIMENSION %s '' incremental 1 %d noreset\n", w->name, 1024);
        }
 
        fprintf(stdout, "CHART apps.files '' 'Apps Open Files' 'open files' apps apps stacked 20050 %d\n", update_every);
@@ -1845,11 +1845,11 @@ void show_charts(void)
        }
 
        fprintf(stdout, "CHART netdata.apps_cpu '' 'Apps Plugin CPU' 'milliseconds/s' netdata netdata stacked 10000 %d\n", update_every);
-       fprintf(stdout, "DIMENSION user '' incremental 1 %d\n", 1000 * update_every);
-       fprintf(stdout, "DIMENSION system '' incremental 1 %d\n", 1000 * update_every);
+       fprintf(stdout, "DIMENSION user '' incremental 1 %d\n", 1000);
+       fprintf(stdout, "DIMENSION system '' incremental 1 %d\n", 1000);
 
        fprintf(stdout, "CHART netdata.apps_files '' 'Apps Plugin Files' 'files/s' netdata netdata line 10001 %d\n", update_every);
-       fprintf(stdout, "DIMENSION files '' incremental 1 %d\n", update_every);
+       fprintf(stdout, "DIMENSION files '' incremental 1 1\n");
        fprintf(stdout, "DIMENSION pids '' absolute 1 1\n");
        fprintf(stdout, "DIMENSION fds '' absolute 1 1\n");
        fprintf(stdout, "DIMENSION targets '' absolute 1 1\n");
index c8e1f75fabcf65e0d331fa157485c0c43f2b957f..5d204a8f0ff8935384a30739d2e58879186dedf1 100755 (executable)
@@ -32,11 +32,11 @@ void *checks_main(void *ptr)
 
        check1 = rrdset_create("netdata", "check1", NULL, "netdata", "Caller gives microseconds", "a million !", 99999, rrd_update_every, RRDSET_TYPE_LINE);
        rrddim_add(check1, "absolute", NULL, -1, 1, RRDDIM_ABSOLUTE);
-       rrddim_add(check1, "incremental", NULL, 1, 1 * rrd_update_every, RRDDIM_INCREMENTAL);
+       rrddim_add(check1, "incremental", NULL, 1, 1, RRDDIM_INCREMENTAL);
 
        check2 = rrdset_create("netdata", "check2", NULL, "netdata", "Netdata calcs microseconds", "a million !", 99999, rrd_update_every, RRDSET_TYPE_LINE);
        rrddim_add(check2, "absolute", NULL, -1, 1, RRDDIM_ABSOLUTE);
-       rrddim_add(check2, "incremental", NULL, 1, 1 * rrd_update_every, RRDDIM_INCREMENTAL);
+       rrddim_add(check2, "incremental", NULL, 1, 1, RRDDIM_INCREMENTAL);
 
        check3 = rrdset_create("netdata", "checkdt", NULL, "netdata", "Clock difference", "microseconds diff", 99999, rrd_update_every, RRDSET_TYPE_LINE);
        rrddim_add(check3, "caller", NULL, 1, 1, RRDDIM_ABSOLUTE);
index 4201a6fb56b6e8b6bac02a65f1897932bb119ef6..91646eb719d422a8e8a8cc3c148900728b0b9468 100755 (executable)
@@ -136,8 +136,8 @@ void *proc_main(void *ptr)
                        if(!stcpu_thread) {
                                stcpu_thread = rrdset_create("netdata", "plugin_proc_cpu", NULL, "netdata", "NetData Proc Plugin CPU usage", "milliseconds/s", 9999, rrd_update_every, RRDSET_TYPE_STACKED);
 
-                               rrddim_add(stcpu_thread, "user",  NULL,  1, 1000 * rrd_update_every, RRDDIM_INCREMENTAL);
-                               rrddim_add(stcpu_thread, "system", NULL, 1, 1000 * rrd_update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(stcpu_thread, "user",  NULL,  1, 1000, RRDDIM_INCREMENTAL);
+                               rrddim_add(stcpu_thread, "system", NULL, 1, 1000, RRDDIM_INCREMENTAL);
                        }
                        else rrdset_next(stcpu_thread);
 
@@ -151,8 +151,8 @@ void *proc_main(void *ptr)
                        if(!stcpu) {
                                stcpu = rrdset_create("netdata", "server_cpu", NULL, "netdata", "NetData CPU usage", "milliseconds/s", 2000, rrd_update_every, RRDSET_TYPE_STACKED);
 
-                               rrddim_add(stcpu, "user",  NULL,  1, 1000 * rrd_update_every, RRDDIM_INCREMENTAL);
-                               rrddim_add(stcpu, "system", NULL, 1, 1000 * rrd_update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(stcpu, "user",  NULL,  1, 1000, RRDDIM_INCREMENTAL);
+                               rrddim_add(stcpu, "system", NULL, 1, 1000, RRDDIM_INCREMENTAL);
                        }
                        else rrdset_next(stcpu);
 
@@ -179,7 +179,7 @@ void *proc_main(void *ptr)
                        if(!streqs) {
                                streqs = rrdset_create("netdata", "requests", NULL, "netdata", "NetData Web Requests", "requests/s", 3001, rrd_update_every, RRDSET_TYPE_LINE);
 
-                               rrddim_add(streqs, "requests",  NULL,  1, 1 * rrd_update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(streqs, "requests",  NULL,  1, 1, RRDDIM_INCREMENTAL);
                        }
                        else rrdset_next(streqs);
 
@@ -192,8 +192,8 @@ void *proc_main(void *ptr)
                        if(!stbytes) {
                                stbytes = rrdset_create("netdata", "net", NULL, "netdata", "NetData Network Traffic", "kilobits/s", 3002, rrd_update_every, RRDSET_TYPE_AREA);
 
-                               rrddim_add(stbytes, "in",  NULL,  8, 1024 * rrd_update_every, RRDDIM_INCREMENTAL);
-                               rrddim_add(stbytes, "out",  NULL,  -8, 1024 * rrd_update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(stbytes, "in",  NULL,  8, 1024, RRDDIM_INCREMENTAL);
+                               rrddim_add(stbytes, "out",  NULL,  -8, 1024, RRDDIM_INCREMENTAL);
                        }
                        else rrdset_next(stbytes);
 
index eeeadc95b17575c79bed3361fd9f873da38db11a..2a7e9469b7a58541ca3ad3d0f07fc45fa7fe0ff0 100755 (executable)
@@ -227,7 +227,7 @@ static void tc_device_commit(struct tc_device *d)
                                if(!c->updated) continue;
 
                                if(c->isleaf && c->hasparent)
-                                       rrddim_add(st, c->id, c->name?c->name:c->id, 8, 1024 * rrd_update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, c->id, c->name?c->name:c->id, 8, 1024, RRDDIM_INCREMENTAL);
                        }
                }
                else {
@@ -247,7 +247,7 @@ static void tc_device_commit(struct tc_device *d)
                                        debug(D_TC_LOOP, "TC: Adding to chart '%s', dimension '%s'", st->id, c->id, c->name);
                                        
                                        // new class, we have to add it
-                                       rd = rrddim_add(st, c->id, c->name?c->name:c->id, 8, 1024 * rrd_update_every, RRDDIM_INCREMENTAL);
+                                       rd = rrddim_add(st, c->id, c->name?c->name:c->id, 8, 1024, RRDDIM_INCREMENTAL);
                                }
                                else debug(D_TC_LOOP, "TC: Updating chart '%s', dimension '%s'", st->id, c->id);
 
@@ -582,8 +582,8 @@ void *tc_main(void *ptr)
                                if(!stcpu) stcpu = rrdset_find("netdata.plugin_tc_cpu");
                                if(!stcpu) {
                                        stcpu = rrdset_create("netdata", "plugin_tc_cpu", NULL, "netdata", "NetData TC CPU usage", "milliseconds/s", 10000, rrd_update_every, RRDSET_TYPE_STACKED);
-                                       rrddim_add(stcpu, "user",  NULL,  1, 1000 * rrd_update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(stcpu, "system", NULL, 1, 1000 * rrd_update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(stcpu, "user",  NULL,  1, 1000, RRDDIM_INCREMENTAL);
+                                       rrddim_add(stcpu, "system", NULL, 1, 1000, RRDDIM_INCREMENTAL);
                                }
                                else rrdset_next(stcpu);
 
index d48b8bf980ae45fbd9c73ef911e46ccaa41f28e4..4d16fd26dc536fffe11038c76a6c4282e52ee1c0 100755 (executable)
@@ -274,8 +274,8 @@ int do_proc_diskstats(int update_every, unsigned long long dt) {
 
                                st = rrdset_create(RRD_TYPE_DISK, disk, NULL, disk, "Disk I/O Bandwidth", "kilobytes/s", 2000, update_every, RRDSET_TYPE_AREA);
 
-                               rrddim_add(st, "reads", NULL, sector_size, 1024 * update_every, RRDDIM_INCREMENTAL);
-                               rrddim_add(st, "writes", NULL, sector_size * -1, 1024 * update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "reads", NULL, sector_size, 1024, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "writes", NULL, sector_size * -1, 1024, RRDDIM_INCREMENTAL);
                        }
                        else rrdset_next_usec(st, dt);
 
@@ -292,8 +292,8 @@ int do_proc_diskstats(int update_every, unsigned long long dt) {
                                st = rrdset_create("disk_ops", disk, NULL, disk, "Disk Completed I/O Operations", "operations/s", 2001, update_every, RRDSET_TYPE_LINE);
                                st->isdetail = 1;
 
-                               rrddim_add(st, "reads", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                               rrddim_add(st, "writes", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "reads", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "writes", NULL, -1, 1, RRDDIM_INCREMENTAL);
                        }
                        else rrdset_next_usec(st, dt);
 
@@ -326,7 +326,7 @@ int do_proc_diskstats(int update_every, unsigned long long dt) {
                                st = rrdset_create("disk_backlog", disk, NULL, disk, "Disk Backlog", "backlog (ms)", 2003, update_every, RRDSET_TYPE_AREA);
                                st->isdetail = 1;
 
-                               rrddim_add(st, "backlog", NULL, 1, 10 * update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "backlog", NULL, 1, 10, RRDDIM_INCREMENTAL);
                        }
                        else rrdset_next_usec(st, dt);
 
@@ -342,7 +342,7 @@ int do_proc_diskstats(int update_every, unsigned long long dt) {
                                st = rrdset_create("disk_util", disk, NULL, disk, "Disk Utilization Time", "% of time working", 2004, update_every, RRDSET_TYPE_AREA);
                                st->isdetail = 1;
 
-                               rrddim_add(st, "utilization", NULL, 1, 10 * update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "utilization", NULL, 1, 10, RRDDIM_INCREMENTAL);
                        }
                        else rrdset_next_usec(st, dt);
 
@@ -358,8 +358,8 @@ int do_proc_diskstats(int update_every, unsigned long long dt) {
                                st = rrdset_create("disk_mops", disk, NULL, disk, "Disk Merged Operations", "merged operations/s", 2021, update_every, RRDSET_TYPE_LINE);
                                st->isdetail = 1;
 
-                               rrddim_add(st, "reads", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                               rrddim_add(st, "writes", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "reads", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "writes", NULL, -1, 1, RRDDIM_INCREMENTAL);
                        }
                        else rrdset_next_usec(st, dt);
 
@@ -376,8 +376,8 @@ int do_proc_diskstats(int update_every, unsigned long long dt) {
                                st = rrdset_create("disk_iotime", disk, NULL, disk, "Disk Total I/O Time", "milliseconds/s", 2022, update_every, RRDSET_TYPE_LINE);
                                st->isdetail = 1;
 
-                               rrddim_add(st, "reads", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                               rrddim_add(st, "writes", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "reads", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "writes", NULL, -1, 1, RRDDIM_INCREMENTAL);
                        }
                        else rrdset_next_usec(st, dt);
 
index 1e811eafe86612f8c4a78bba02cfab25af8b57d8..55427b8ce163cb0859806bd0f741b33fafa7e1ef 100755 (executable)
@@ -110,7 +110,7 @@ int do_proc_interrupts(int update_every, unsigned long long dt) {
 
                for(l = 0; l < lines ;l++) {
                        if(!irrs[l].used) continue;
-                       rrddim_add(st, irrs[l].id, irrs[l].name, 1, update_every, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, irrs[l].id, irrs[l].name, 1, 1, RRDDIM_INCREMENTAL);
                }
        }
        else rrdset_next(st);
@@ -137,7 +137,7 @@ int do_proc_interrupts(int update_every, unsigned long long dt) {
 
                                for(l = 0; l < lines ;l++) {
                                        if(!irrs[l].used) continue;
-                                       rrddim_add(st, irrs[l].id, irrs[l].name, 1, update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, irrs[l].id, irrs[l].name, 1, 1, RRDDIM_INCREMENTAL);
                                }
                        }
                        else rrdset_next(st);
index 0bb97fa7ab6249f8f459eb14bbeaeab22a5a1f42..72e0ea9149e758548a44ba2df9acb34264b8053a 100755 (executable)
@@ -83,8 +83,8 @@ int do_proc_net_dev(int update_every, unsigned long long dt) {
                        if(!st) {
                                st = rrdset_create("net", iface, NULL, iface, "Bandwidth", "kilobits/s", 1000, update_every, RRDSET_TYPE_AREA);
 
-                               rrddim_add(st, "received", NULL, 8, 1024 * update_every, RRDDIM_INCREMENTAL);
-                               rrddim_add(st, "sent", NULL, -8, 1024 * update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "received", NULL, 8, 1024, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "sent", NULL, -8, 1024, RRDDIM_INCREMENTAL);
                        }
                        else rrdset_next(st);
 
@@ -101,9 +101,9 @@ int do_proc_net_dev(int update_every, unsigned long long dt) {
                                st = rrdset_create("net_packets", iface, NULL, iface, "Packets", "packets/s", 1001, update_every, RRDSET_TYPE_LINE);
                                st->isdetail = 1;
 
-                               rrddim_add(st, "received", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                               rrddim_add(st, "sent", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
-                               rrddim_add(st, "multicast", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "received", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "sent", NULL, -1, 1, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "multicast", NULL, 1, 1, RRDDIM_INCREMENTAL);
                        }
                        else rrdset_next(st);
 
@@ -121,8 +121,8 @@ int do_proc_net_dev(int update_every, unsigned long long dt) {
                                st = rrdset_create("net_errors", iface, NULL, iface, "Interface Errors", "errors/s", 1002, update_every, RRDSET_TYPE_LINE);
                                st->isdetail = 1;
 
-                               rrddim_add(st, "inbound", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                               rrddim_add(st, "outbound", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "inbound", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "outbound", NULL, -1, 1, RRDDIM_INCREMENTAL);
                        }
                        else rrdset_next(st);
 
@@ -139,8 +139,8 @@ int do_proc_net_dev(int update_every, unsigned long long dt) {
                                st = rrdset_create("net_drops", iface, NULL, iface, "Interface Drops", "drops/s", 1003, update_every, RRDSET_TYPE_LINE);
                                st->isdetail = 1;
 
-                               rrddim_add(st, "inbound", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                               rrddim_add(st, "outbound", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "inbound", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "outbound", NULL, -1, 1, RRDDIM_INCREMENTAL);
                        }
                        else rrdset_next(st);
 
@@ -175,8 +175,8 @@ int do_proc_net_dev(int update_every, unsigned long long dt) {
                                st = rrdset_create("net_compressed", iface, NULL, iface, "Compressed Packets", "packets/s", 1200, update_every, RRDSET_TYPE_LINE);
                                st->isdetail = 1;
 
-                               rrddim_add(st, "received", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                               rrddim_add(st, "sent", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "received", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "sent", NULL, -1, 1, RRDDIM_INCREMENTAL);
                        }
                        else rrdset_next(st);
 
@@ -193,9 +193,9 @@ int do_proc_net_dev(int update_every, unsigned long long dt) {
                                st = rrdset_create("net_events", iface, NULL, iface, "Network Interface Events", "events/s", 1200, update_every, RRDSET_TYPE_LINE);
                                st->isdetail = 1;
 
-                               rrddim_add(st, "frames", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                               rrddim_add(st, "collisions", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
-                               rrddim_add(st, "carrier", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "frames", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "collisions", NULL, -1, 1, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, "carrier", NULL, -1, 1, RRDDIM_INCREMENTAL);
                        }
                        else rrdset_next(st);
 
index 18114af2270da647389e64bdaafd12f056220ca8..b7fbec537fb121fd8704ec39a80820a17da61a30 100755 (executable)
@@ -56,7 +56,7 @@ int do_proc_net_ip_vs_stats(int update_every, unsigned long long dt) {
                if(!st) {
                        st = rrdset_create(RRD_TYPE_NET_IPVS, "sockets", NULL, RRD_TYPE_NET_IPVS, "IPVS New Connections", "connections/s", 1001, update_every, RRDSET_TYPE_LINE);
 
-                       rrddim_add(st, "connections", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "connections", NULL, 1, 1, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
@@ -71,8 +71,8 @@ int do_proc_net_ip_vs_stats(int update_every, unsigned long long dt) {
                if(!st) {
                        st = rrdset_create(RRD_TYPE_NET_IPVS, "packets", NULL, RRD_TYPE_NET_IPVS, "IPVS Packets", "packets/s", 1002, update_every, RRDSET_TYPE_LINE);
 
-                       rrddim_add(st, "received", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "sent", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "received", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "sent", NULL, -1, 1, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
@@ -88,8 +88,8 @@ int do_proc_net_ip_vs_stats(int update_every, unsigned long long dt) {
                if(!st) {
                        st = rrdset_create(RRD_TYPE_NET_IPVS, "net", NULL, RRD_TYPE_NET_IPVS, "IPVS Bandwidth", "kilobits/s", 1000, update_every, RRDSET_TYPE_AREA);
 
-                       rrddim_add(st, "received", NULL, 8, 1024 * update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "sent", NULL, -8, 1024 * update_every, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "received", NULL, 8, 1024, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "sent", NULL, -8, 1024, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
index 35535265e37198a88ee8722adc9ed2cf54b8b6d9..8f46c92ee8b59c8a0ce3dcaabfde04331c3052fd 100755 (executable)
@@ -79,8 +79,8 @@ int do_proc_net_netstat(int update_every, unsigned long long dt) {
                                if(!st) {
                                        st = rrdset_create("system", "ipv4", NULL, "ipv4", "IPv4 Bandwidth", "kilobits/s", 2000, update_every, RRDSET_TYPE_AREA);
 
-                                       rrddim_add(st, "received", NULL, 8, 1024 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "sent", NULL, -8, 1024 * update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "received", NULL, 8, 1024, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "sent", NULL, -8, 1024, RRDDIM_INCREMENTAL);
                                }
                                else rrdset_next(st);
 
@@ -97,8 +97,8 @@ int do_proc_net_netstat(int update_every, unsigned long long dt) {
                                        st = rrdset_create("ipv4", "inerrors", NULL, "ipv4", "IPv4 Input Errors", "packets/s", 4000, update_every, RRDSET_TYPE_LINE);
                                        st->isdetail = 1;
 
-                                       rrddim_add(st, "noroutes", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "trunkated", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "noroutes", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "trunkated", NULL, 1, 1, RRDDIM_INCREMENTAL);
                                }
                                else rrdset_next(st);
 
@@ -115,8 +115,8 @@ int do_proc_net_netstat(int update_every, unsigned long long dt) {
                                        st = rrdset_create("ipv4", "mcast", NULL, "ipv4", "IPv4 Multicast Bandwidth", "kilobits/s", 9000, update_every, RRDSET_TYPE_AREA);
                                        st->isdetail = 1;
 
-                                       rrddim_add(st, "received", NULL, 8, 1024 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "sent", NULL, -8, 1024 * update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "received", NULL, 8, 1024, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "sent", NULL, -8, 1024, RRDDIM_INCREMENTAL);
                                }
                                else rrdset_next(st);
 
@@ -133,8 +133,8 @@ int do_proc_net_netstat(int update_every, unsigned long long dt) {
                                        st = rrdset_create("ipv4", "bcast", NULL, "ipv4", "IPv4 Broadcast Bandwidth", "kilobits/s", 8000, update_every, RRDSET_TYPE_AREA);
                                        st->isdetail = 1;
 
-                                       rrddim_add(st, "received", NULL, 8, 1024 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "sent", NULL, -8, 1024 * update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "received", NULL, 8, 1024, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "sent", NULL, -8, 1024, RRDDIM_INCREMENTAL);
                                }
                                else rrdset_next(st);
 
@@ -151,8 +151,8 @@ int do_proc_net_netstat(int update_every, unsigned long long dt) {
                                        st = rrdset_create("ipv4", "mcastpkts", NULL, "ipv4", "IPv4 Multicast Packets", "packets/s", 9500, update_every, RRDSET_TYPE_LINE);
                                        st->isdetail = 1;
 
-                                       rrddim_add(st, "received", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "sent", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "received", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "sent", NULL, -1, 1, RRDDIM_INCREMENTAL);
                                }
                                else rrdset_next(st);
 
@@ -169,8 +169,8 @@ int do_proc_net_netstat(int update_every, unsigned long long dt) {
                                        st = rrdset_create("ipv4", "bcastpkts", NULL, "ipv4", "IPv4 Broadcast Packets", "packets/s", 8500, update_every, RRDSET_TYPE_LINE);
                                        st->isdetail = 1;
 
-                                       rrddim_add(st, "received", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "sent", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "received", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "sent", NULL, -1, 1, RRDDIM_INCREMENTAL);
                                }
                                else rrdset_next(st);
 
index 63fb1077324899ee0b828fe9ba6ef3fd1c69c522..ba3a8d47bbfbb4bd08b895e735bff81a121b9a9a 100644 (file)
@@ -422,9 +422,9 @@ int do_proc_net_rpc_nfsd(int update_every, unsigned long long dt) {
                if(!st) {
                        st = rrdset_create("nfsd", "readcache", NULL, "nfsd", "Read Cache", "reads/s", 5000, update_every, RRDSET_TYPE_STACKED);
 
-                       rrddim_add(st, "hits", NULL, 1, update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "misses", NULL, 1, update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "nocache", NULL, 1, update_every, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "hits", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "misses", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "nocache", NULL, 1, 1, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
@@ -442,11 +442,11 @@ int do_proc_net_rpc_nfsd(int update_every, unsigned long long dt) {
                        st = rrdset_create("nfsd", "filehandles", NULL, "nfsd", "File Handles", "handles/s", 5001, update_every, RRDSET_TYPE_LINE);
                        st->isdetail = 1;
 
-                       rrddim_add(st, "stale", NULL, 1, update_every, RRDDIM_ABSOLUTE);
-                       rrddim_add(st, "total_lookups", NULL, 1, update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "anonymous_lookups", NULL, 1, update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "dir_not_in_dcache", NULL, -1, update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "non_dir_not_in_dcache", NULL, -1, update_every, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "stale", NULL, 1, 1, RRDDIM_ABSOLUTE);
+                       rrddim_add(st, "total_lookups", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "anonymous_lookups", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "dir_not_in_dcache", NULL, -1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "non_dir_not_in_dcache", NULL, -1, 1, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
@@ -465,8 +465,8 @@ int do_proc_net_rpc_nfsd(int update_every, unsigned long long dt) {
                if(!st) {
                        st = rrdset_create("nfsd", "io", NULL, "nfsd", "I/O", "kilobytes/s", 5002, update_every, RRDSET_TYPE_AREA);
 
-                       rrddim_add(st, "read", NULL, 1, 1000 * update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "write", NULL, -1, 1000 * update_every, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "read", NULL, 1, 1000, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "write", NULL, -1, 1000, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
@@ -493,7 +493,7 @@ int do_proc_net_rpc_nfsd(int update_every, unsigned long long dt) {
                if(!st) {
                        st = rrdset_create("nfsd", "threads_fullcnt", NULL, "nfsd", "Threads Full Count", "ops/s", 5004, update_every, RRDSET_TYPE_LINE);
 
-                       rrddim_add(st, "full_count", NULL, 1, update_every, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "full_count", NULL, 1, 1, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
@@ -537,17 +537,17 @@ int do_proc_net_rpc_nfsd(int update_every, unsigned long long dt) {
                if(!st) {
                        st = rrdset_create("nfsd", "readahead", NULL, "nfsd", "Read Ahead Depth", "percentage", 5005, update_every, RRDSET_TYPE_STACKED);
 
-                       rrddim_add(st, "10%", NULL, 1, update_every, RRDDIM_PCENT_OVER_DIFF_TOTAL);
-                       rrddim_add(st, "20%", NULL, 1, update_every, RRDDIM_PCENT_OVER_DIFF_TOTAL);
-                       rrddim_add(st, "30%", NULL, 1, update_every, RRDDIM_PCENT_OVER_DIFF_TOTAL);
-                       rrddim_add(st, "40%", NULL, 1, update_every, RRDDIM_PCENT_OVER_DIFF_TOTAL);
-                       rrddim_add(st, "50%", NULL, 1, update_every, RRDDIM_PCENT_OVER_DIFF_TOTAL);
-                       rrddim_add(st, "60%", NULL, 1, update_every, RRDDIM_PCENT_OVER_DIFF_TOTAL);
-                       rrddim_add(st, "70%", NULL, 1, update_every, RRDDIM_PCENT_OVER_DIFF_TOTAL);
-                       rrddim_add(st, "80%", NULL, 1, update_every, RRDDIM_PCENT_OVER_DIFF_TOTAL);
-                       rrddim_add(st, "90%", NULL, 1, update_every, RRDDIM_PCENT_OVER_DIFF_TOTAL);
-                       rrddim_add(st, "100%", NULL, 1, update_every, RRDDIM_PCENT_OVER_DIFF_TOTAL);
-                       rrddim_add(st, "misses", NULL, 1, update_every, RRDDIM_PCENT_OVER_DIFF_TOTAL);
+                       rrddim_add(st, "10%", NULL, 1, 1, RRDDIM_PCENT_OVER_DIFF_TOTAL);
+                       rrddim_add(st, "20%", NULL, 1, 1, RRDDIM_PCENT_OVER_DIFF_TOTAL);
+                       rrddim_add(st, "30%", NULL, 1, 1, RRDDIM_PCENT_OVER_DIFF_TOTAL);
+                       rrddim_add(st, "40%", NULL, 1, 1, RRDDIM_PCENT_OVER_DIFF_TOTAL);
+                       rrddim_add(st, "50%", NULL, 1, 1, RRDDIM_PCENT_OVER_DIFF_TOTAL);
+                       rrddim_add(st, "60%", NULL, 1, 1, RRDDIM_PCENT_OVER_DIFF_TOTAL);
+                       rrddim_add(st, "70%", NULL, 1, 1, RRDDIM_PCENT_OVER_DIFF_TOTAL);
+                       rrddim_add(st, "80%", NULL, 1, 1, RRDDIM_PCENT_OVER_DIFF_TOTAL);
+                       rrddim_add(st, "90%", NULL, 1, 1, RRDDIM_PCENT_OVER_DIFF_TOTAL);
+                       rrddim_add(st, "100%", NULL, 1, 1, RRDDIM_PCENT_OVER_DIFF_TOTAL);
+                       rrddim_add(st, "misses", NULL, 1, 1, RRDDIM_PCENT_OVER_DIFF_TOTAL);
                }
                else rrdset_next(st);
 
@@ -576,8 +576,8 @@ int do_proc_net_rpc_nfsd(int update_every, unsigned long long dt) {
                        st = rrdset_create("nfsd", "net", NULL, "nfsd", "Network Reads", "reads/s", 5007, update_every, RRDSET_TYPE_STACKED);
                        st->isdetail = 1;
 
-                       rrddim_add(st, "udp", NULL, 1, update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "tcp", NULL, 1, update_every, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "udp", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "tcp", NULL, 1, 1, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
@@ -598,9 +598,9 @@ int do_proc_net_rpc_nfsd(int update_every, unsigned long long dt) {
                        st = rrdset_create("nfsd", "rpc", NULL, "nfsd", "Remote Procedure Calls", "calls/s", 5008, update_every, RRDSET_TYPE_LINE);
                        st->isdetail = 1;
 
-                       rrddim_add(st, "all", NULL, 1, update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "bad_format", NULL, -1, update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "bad_auth", NULL, -1, update_every, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "all", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "bad_format", NULL, -1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "bad_auth", NULL, -1, 1, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
@@ -622,7 +622,7 @@ int do_proc_net_rpc_nfsd(int update_every, unsigned long long dt) {
                        st = rrdset_create("nfsd", "proc2", NULL, "nfsd", "NFS v2 Calls", "calls/s", 5009, update_every, RRDSET_TYPE_STACKED);
 
                        for(i = 0; nfsd_proc_values[i].present2 ; i++)
-                               rrddim_add(st, nfsd_proc_values[i].name, NULL, 1, update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, nfsd_proc_values[i].name, NULL, 1, 1, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
@@ -641,7 +641,7 @@ int do_proc_net_rpc_nfsd(int update_every, unsigned long long dt) {
                        st = rrdset_create("nfsd", "proc3", NULL, "nfsd", "NFS v3 Calls", "calls/s", 5010, update_every, RRDSET_TYPE_STACKED);
 
                        for(i = 0; nfsd_proc_values[i].present3 ; i++)
-                               rrddim_add(st, nfsd_proc_values[i].name, NULL, 1, update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, nfsd_proc_values[i].name, NULL, 1, 1, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
@@ -660,7 +660,7 @@ int do_proc_net_rpc_nfsd(int update_every, unsigned long long dt) {
                        st = rrdset_create("nfsd", "proc4", NULL, "nfsd", "NFS v4 Calls", "calls/s", 5011, update_every, RRDSET_TYPE_STACKED);
 
                        for(i = 0; nfsd_proc_values[i].present4 ; i++)
-                               rrddim_add(st, nfsd_proc_values[i].name, NULL, 1, update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, nfsd_proc_values[i].name, NULL, 1, 1, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
@@ -679,7 +679,7 @@ int do_proc_net_rpc_nfsd(int update_every, unsigned long long dt) {
                        st = rrdset_create("nfsd", "proc4ops", NULL, "nfsd", "NFS v4 Operations", "operations/s", 5012, update_every, RRDSET_TYPE_STACKED);
 
                        for(i = 0; nfsd4_ops_values[i].present ; i++)
-                               rrddim_add(st, nfsd4_ops_values[i].name, NULL, 1, update_every, RRDDIM_INCREMENTAL);
+                               rrddim_add(st, nfsd4_ops_values[i].name, NULL, 1, 1, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
index b69298277cad6f6fe9d38b2cee97c2f5612047d2..482fc94ae573d6d36b9cd0c7df2437a997ce53f3 100755 (executable)
@@ -103,9 +103,9 @@ int do_proc_net_snmp(int update_every, unsigned long long dt) {
                                if(!st) {
                                        st = rrdset_create(RRD_TYPE_NET_SNMP, "packets", NULL, RRD_TYPE_NET_SNMP, "IPv4 Packets", "packets/s", 3000, update_every, RRDSET_TYPE_LINE);
 
-                                       rrddim_add(st, "received", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "sent", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "forwarded", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "received", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "sent", NULL, -1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "forwarded", NULL, 1, 1, RRDDIM_INCREMENTAL);
                                }
                                else rrdset_next(st);
 
@@ -123,9 +123,9 @@ int do_proc_net_snmp(int update_every, unsigned long long dt) {
                                        st = rrdset_create(RRD_TYPE_NET_SNMP, "fragsout", NULL, RRD_TYPE_NET_SNMP, "IPv4 Fragments Sent", "packets/s", 3010, update_every, RRDSET_TYPE_LINE);
                                        st->isdetail = 1;
 
-                                       rrddim_add(st, "ok", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "failed", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "all", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "ok", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "failed", NULL, -1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "all", NULL, 1, 1, RRDDIM_INCREMENTAL);
                                }
                                else rrdset_next(st);
 
@@ -143,9 +143,9 @@ int do_proc_net_snmp(int update_every, unsigned long long dt) {
                                        st = rrdset_create(RRD_TYPE_NET_SNMP, "fragsin", NULL, RRD_TYPE_NET_SNMP, "IPv4 Fragments Reassembly", "packets/s", 3011, update_every, RRDSET_TYPE_LINE);
                                        st->isdetail = 1;
 
-                                       rrddim_add(st, "ok", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "failed", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "all", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "ok", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "failed", NULL, -1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "all", NULL, 1, 1, RRDDIM_INCREMENTAL);
                                }
                                else rrdset_next(st);
 
@@ -163,14 +163,14 @@ int do_proc_net_snmp(int update_every, unsigned long long dt) {
                                        st = rrdset_create(RRD_TYPE_NET_SNMP, "errors", NULL, RRD_TYPE_NET_SNMP, "IPv4 Errors", "packets/s", 3002, update_every, RRDSET_TYPE_LINE);
                                        st->isdetail = 1;
 
-                                       rrddim_add(st, "InDiscards", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "OutDiscards", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "InDiscards", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "OutDiscards", NULL, -1, 1, RRDDIM_INCREMENTAL);
 
-                                       rrddim_add(st, "InHdrErrors", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "InAddrErrors", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "InUnknownProtos", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "InHdrErrors", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "InAddrErrors", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "InUnknownProtos", NULL, 1, 1, RRDDIM_INCREMENTAL);
 
-                                       rrddim_add(st, "OutNoRoutes", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "OutNoRoutes", NULL, -1, 1, RRDDIM_INCREMENTAL);
                                }
                                else rrdset_next(st);
 
@@ -244,8 +244,8 @@ int do_proc_net_snmp(int update_every, unsigned long long dt) {
                                if(!st) {
                                        st = rrdset_create(RRD_TYPE_NET_SNMP, "tcppackets", NULL, "tcp", "IPv4 TCP Packets", "packets/s", 2600, update_every, RRDSET_TYPE_LINE);
 
-                                       rrddim_add(st, "received", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "sent", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "received", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "sent", NULL, -1, 1, RRDDIM_INCREMENTAL);
                                }
                                else rrdset_next(st);
 
@@ -262,8 +262,8 @@ int do_proc_net_snmp(int update_every, unsigned long long dt) {
                                        st = rrdset_create(RRD_TYPE_NET_SNMP, "tcperrors", NULL, "tcp", "IPv4 TCP Errors", "packets/s", 2700, update_every, RRDSET_TYPE_LINE);
                                        st->isdetail = 1;
 
-                                       rrddim_add(st, "InErrs", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "RetransSegs", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "InErrs", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "RetransSegs", NULL, -1, 1, RRDDIM_INCREMENTAL);
                                }
                                else rrdset_next(st);
 
@@ -280,11 +280,11 @@ int do_proc_net_snmp(int update_every, unsigned long long dt) {
                                        st = rrdset_create(RRD_TYPE_NET_SNMP, "tcphandshake", NULL, "tcp", "IPv4 TCP Handshake Issues", "events/s", 2900, update_every, RRDSET_TYPE_LINE);
                                        st->isdetail = 1;
 
-                                       rrddim_add(st, "EstabResets", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "OutRsts", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "ActiveOpens", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "PassiveOpens", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "AttemptFails", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "EstabResets", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "OutRsts", NULL, -1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "ActiveOpens", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "PassiveOpens", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "AttemptFails", NULL, 1, 1, RRDDIM_INCREMENTAL);
                                }
                                else rrdset_next(st);
 
@@ -327,8 +327,8 @@ int do_proc_net_snmp(int update_every, unsigned long long dt) {
                                if(!st) {
                                        st = rrdset_create(RRD_TYPE_NET_SNMP, "udppackets", NULL, "udp", "IPv4 UDP Packets", "packets/s", 2601, update_every, RRDSET_TYPE_LINE);
 
-                                       rrddim_add(st, "received", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "sent", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "received", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "sent", NULL, -1, 1, RRDDIM_INCREMENTAL);
                                }
                                else rrdset_next(st);
 
@@ -345,10 +345,10 @@ int do_proc_net_snmp(int update_every, unsigned long long dt) {
                                        st = rrdset_create(RRD_TYPE_NET_SNMP, "udperrors", NULL, "udp", "IPv4 UDP Errors", "events/s", 2701, update_every, RRDSET_TYPE_LINE);
                                        st->isdetail = 1;
 
-                                       rrddim_add(st, "RcvbufErrors", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "SndbufErrors", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "InErrors", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                                       rrddim_add(st, "NoPorts", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "RcvbufErrors", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "SndbufErrors", NULL, -1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "InErrors", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "NoPorts", NULL, 1, 1, RRDDIM_INCREMENTAL);
                                }
                                else rrdset_next(st);
 
index 5f16c8df2089fbe4161dfa81eb62942b0e44ca0d..feeaa853ad0815b0cdfb06cbc3b971b9bf26a81e 100755 (executable)
@@ -116,9 +116,9 @@ int do_proc_net_stat_conntrack(int update_every, unsigned long long dt) {
                if(!st) {
                        st = rrdset_create(RRD_TYPE_NET_STAT_CONNTRACK, "new", NULL, RRD_TYPE_NET_STAT_CONNTRACK, "Netfilter New Connections", "connections/s", 1001, update_every, RRDSET_TYPE_LINE);
 
-                       rrddim_add(st, "new", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "ignore", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "invalid", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "new", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "ignore", NULL, -1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "invalid", NULL, -1, 1, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
@@ -136,9 +136,9 @@ int do_proc_net_stat_conntrack(int update_every, unsigned long long dt) {
                        st = rrdset_create(RRD_TYPE_NET_STAT_CONNTRACK, "changes", NULL, RRD_TYPE_NET_STAT_CONNTRACK, "Netfilter Connection Changes", "changes/s", 1002, update_every, RRDSET_TYPE_LINE);
                        st->isdetail = 1;
 
-                       rrddim_add(st, "inserted", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "deleted", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "delete_list", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "inserted", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "deleted", NULL, -1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "delete_list", NULL, -1, 1, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
@@ -156,9 +156,9 @@ int do_proc_net_stat_conntrack(int update_every, unsigned long long dt) {
                        st = rrdset_create(RRD_TYPE_NET_STAT_CONNTRACK, "expect", NULL, RRD_TYPE_NET_STAT_CONNTRACK, "Netfilter Connection Expectations", "expectations/s", 1003, update_every, RRDSET_TYPE_LINE);
                        st->isdetail = 1;
 
-                       rrddim_add(st, "created", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "deleted", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "new", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "created", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "deleted", NULL, -1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "new", NULL, 1, 1, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
@@ -176,9 +176,9 @@ int do_proc_net_stat_conntrack(int update_every, unsigned long long dt) {
                        st = rrdset_create(RRD_TYPE_NET_STAT_CONNTRACK, "search", NULL, RRD_TYPE_NET_STAT_CONNTRACK, "Netfilter Connection Searches", "searches/s", 1010, update_every, RRDSET_TYPE_LINE);
                        st->isdetail = 1;
 
-                       rrddim_add(st, "searched", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "restarted", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "found", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "searched", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "restarted", NULL, -1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "found", NULL, 1, 1, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
@@ -196,10 +196,10 @@ int do_proc_net_stat_conntrack(int update_every, unsigned long long dt) {
                        st = rrdset_create(RRD_TYPE_NET_STAT_CONNTRACK, "errors", NULL, RRD_TYPE_NET_STAT_CONNTRACK, "Netfilter Errors", "events/s", 1005, update_every, RRDSET_TYPE_LINE);
                        st->isdetail = 1;
 
-                       rrddim_add(st, "icmp_error", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "insert_failed", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "drop", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "early_drop", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "icmp_error", NULL, 1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "insert_failed", NULL, -1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "drop", NULL, -1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "early_drop", NULL, -1, 1, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
index 27d11fb32521ae147592f8127c9de315eada1bbe..b2364beccc86ec24ff0979b0232b4b1731abe425 100755 (executable)
@@ -125,7 +125,7 @@ int do_proc_stat(int update_every, unsigned long long dt) {
                                        st = rrdset_create("system", "intr", NULL, "cpu", "CPU Interrupts", "interrupts/s", 900, update_every, RRDSET_TYPE_LINE);
                                        st->isdetail = 1;
 
-                                       rrddim_add(st, "interrupts", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "interrupts", NULL, 1, 1, RRDDIM_INCREMENTAL);
                                }
                                else rrdset_next(st);
 
@@ -143,7 +143,7 @@ int do_proc_stat(int update_every, unsigned long long dt) {
                                if(!st) {
                                        st = rrdset_create("system", "ctxt", NULL, "cpu", "CPU Context Switches", "context switches/s", 800, update_every, RRDSET_TYPE_LINE);
 
-                                       rrddim_add(st, "switches", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
+                                       rrddim_add(st, "switches", NULL, 1, 1, RRDDIM_INCREMENTAL);
                                }
                                else rrdset_next(st);
 
@@ -170,7 +170,7 @@ int do_proc_stat(int update_every, unsigned long long dt) {
                        st = rrdset_create("system", "forks", NULL, "cpu", "New Processes", "processes/s", 700, update_every, RRDSET_TYPE_LINE);
                        st->isdetail = 1;
 
-                       rrddim_add(st, "started", NULL, 1, 1 * update_every, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "started", NULL, 1, 1, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
index b6c8ce7bed72f5a11df84141f633e9a96246727b..8ae1eb2691498d49263dccc8d447c4d2ef594698 100755 (executable)
@@ -166,8 +166,8 @@ int do_proc_vmstat(int update_every, unsigned long long dt) {
                if(!st) {
                        st = rrdset_create("system", "swapio", NULL, "mem", "Swap I/O", "kilobytes/s", 250, update_every, RRDSET_TYPE_AREA);
 
-                       rrddim_add(st, "in",  NULL, sysconf(_SC_PAGESIZE), 1024 * update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "out", NULL, -sysconf(_SC_PAGESIZE), 1024 * update_every, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "in",  NULL, sysconf(_SC_PAGESIZE), 1024, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "out", NULL, -sysconf(_SC_PAGESIZE), 1024, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
@@ -183,8 +183,8 @@ int do_proc_vmstat(int update_every, unsigned long long dt) {
                if(!st) {
                        st = rrdset_create("system", "io", NULL, "disk", "Disk I/O", "kilobytes/s", 150, update_every, RRDSET_TYPE_AREA);
 
-                       rrddim_add(st, "in",  NULL,  1, 1 * update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "out", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "in",  NULL,  1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "out", NULL, -1, 1, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
@@ -201,8 +201,8 @@ int do_proc_vmstat(int update_every, unsigned long long dt) {
                        st = rrdset_create("system", "pgfaults", NULL, "mem", "Memory Page Faults", "page faults/s", 500, update_every, RRDSET_TYPE_LINE);
                        st->isdetail = 1;
 
-                       rrddim_add(st, "minor",  NULL,  1, 1 * update_every, RRDDIM_INCREMENTAL);
-                       rrddim_add(st, "major", NULL, -1, 1 * update_every, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "minor",  NULL,  1, 1, RRDDIM_INCREMENTAL);
+                       rrddim_add(st, "major", NULL, -1, 1, RRDDIM_INCREMENTAL);
                }
                else rrdset_next(st);
 
index fe264cf789db04be2608c0de323621f9bfbefc76..7975ef69469fd7f4c769756c819301b5dd7da7bb 100755 (executable)
--- a/src/rrd.c
+++ b/src/rrd.c
@@ -978,28 +978,46 @@ unsigned long long rrdset_done(RRDSET *st)
                                        rd->last_collected_value = rd->collected_value;
                                }
 
-                               rd->calculated_value += (calculated_number)(rd->collected_value - rd->last_collected_value);
+                               rd->calculated_value += (calculated_number)(rd->collected_value - rd->last_collected_value)
+                                       * (calculated_number)rd->multiplier
+                                       / (calculated_number)rd->divisor
+                                       * (calculated_number)1000000ULL
+                                       / (calculated_number)st->usec_since_last_update;
 
                                if(unlikely(st->debug))
                                        debug(D_RRD_STATS, "%s/%s: CALC INC "
-                                               CALCULATED_NUMBER_FORMAT " += "
+                                               CALCULATED_NUMBER_FORMAT " += ("
                                                COLLECTED_NUMBER_FORMAT " - " COLLECTED_NUMBER_FORMAT
+                                               " * %ld"
+                                               " / %ld"
+                                               " * 1000000"
+                                               " / %llu"
+                                               ")"
                                                , st->id, rd->name
                                                , rd->calculated_value
                                                , rd->collected_value, rd->last_collected_value
+                                               , (calculated_number)rd->multiplier
+                                               , (calculated_number)rd->divisor
+                                               , st->usec_since_last_update
                                                );
                                break;
 
                        case RRDDIM_ABSOLUTE:
-                               rd->calculated_value = (calculated_number)rd->collected_value;
+                               rd->calculated_value = (calculated_number)rd->collected_value
+                                       * (calculated_number)rd->multiplier
+                                       / (calculated_number)rd->divisor;
 
                                if(unlikely(st->debug))
                                        debug(D_RRD_STATS, "%s/%s: CALC ABS/ABS-NO-IN "
                                                CALCULATED_NUMBER_FORMAT " = "
                                                COLLECTED_NUMBER_FORMAT
+                                               " * %ld"
+                                               " / %ld"
                                                , st->id, rd->name
                                                , rd->calculated_value
                                                , rd->collected_value
+                                               , (calculated_number)rd->multiplier
+                                               , (calculated_number)rd->divisor
                                                );
                                break;
 
@@ -1097,22 +1115,14 @@ unsigned long long rrdset_done(RRDSET *st)
                        }
 
                        if(likely(rd->updated && rd->counter > 1 && iterations < st->gap_when_lost_iterations_above)) {
-                               rd->values[st->current_entry] = pack_storage_number(
-                                                 new_value
-                                               * (calculated_number)rd->multiplier
-                                               / (calculated_number)rd->divisor
-                                       , storage_flags );
+                               rd->values[st->current_entry] = pack_storage_number(new_value, storage_flags );
 
                                if(unlikely(st->debug))
                                        debug(D_RRD_STATS, "%s/%s: STORE[%ld] "
                                                CALCULATED_NUMBER_FORMAT " = " CALCULATED_NUMBER_FORMAT
-                                               " * %ld"
-                                               " / %ld"
                                                , st->id, rd->name
                                                , st->current_entry
                                                , unpack_storage_number(rd->values[st->current_entry]), new_value
-                                               , rd->multiplier
-                                               , rd->divisor
                                                );
                        }
                        else {
index dd69d68a90f4f512e7e176d8fab44296be45c1cd..a0a412409e13172fa94e1537c7ddcb2300c71f06 100755 (executable)
@@ -267,7 +267,7 @@ int unit_test(long delay, long shift)
        RRDDIM *rdabsi = NULL;
 
        if(do_abs) rdabs = rrddim_add(st, "absolute", "absolute", 1, 1, RRDDIM_ABSOLUTE);
-       if(do_inc) rdinc = rrddim_add(st, "incremental", "incremental", 1, 1 * rrd_update_every, RRDDIM_INCREMENTAL);
+       if(do_inc) rdinc = rrddim_add(st, "incremental", "incremental", 1, 1, RRDDIM_INCREMENTAL);
        if(do_abst) rdabst = rrddim_add(st, "percentage-of-absolute-row", "percentage-of-absolute-row", 1, 1, RRDDIM_PCENT_OVER_ROW_TOTAL);
        if(do_absi) rdabsi = rrddim_add(st, "percentage-of-incremental-row", "percentage-of-incremental-row", 1, 1, RRDDIM_PCENT_OVER_DIFF_TOTAL);