src/types.db: Replace all COUNTER data sources with DERIVE.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 5 Dec 2010 10:39:09 +0000 (11:39 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 5 Dec 2010 10:39:09 +0000 (11:39 +0100)
All the standard DERIVE data sources have a minimum value of zero and
no maximum value.

src/types.db

index 0484983..5fdfa02 100644 (file)
@@ -1,16 +1,16 @@
 absolute               count:ABSOLUTE:0:U
-apache_bytes           count:COUNTER:0:134217728
+apache_bytes           count:DERIVE:0:U
 apache_connections     count:GAUGE:0:65535
 apache_idle_workers    count:GAUGE:0:65535
-apache_requests                count:COUNTER:0:134217728
+apache_requests                count:DERIVE:0:U
 apache_scoreboard      count:GAUGE:0:65535
-arc_counts             demand_data:COUNTER:0:U, demand_metadata:COUNTER:0:U, prefetch_data:COUNTER:0:U, prefetch_metadata:COUNTER:0:U
-arc_l2_bytes           read:COUNTER:0:U, write:COUNTER:0:U
+arc_counts             demand_data:DERIVE:0:U, demand_metadata:DERIVE:0:U, prefetch_data:DERIVE:0:U, prefetch_metadata:DERIVE:0:U
+arc_l2_bytes           read:DERIVE:0:U, write:DERIVE:0:U
 arc_l2_size            value:GAUGE:0:U
 arc_ratio              value:GAUGE:0:U
 arc_size               current:GAUGE:0:U, target:GAUGE:0:U, minlimit:GAUGE:0:U, maxlimit:GAUGE:0:U
 ath_nodes              value:GAUGE:0:65535
-ath_stat               value:COUNTER:0:4294967295
+ath_stat               value:DERIVE:0:U
 bitrate                        value:GAUGE:0:4294967295
 bytes                  value:GAUGE:0:U
 cache_operation                value:DERIVE:0:U
@@ -18,44 +18,44 @@ cache_ratio         value:GAUGE:0:100
 cache_result           value:DERIVE:0:U
 cache_size             value:GAUGE:0:4294967295
 charge                 value:GAUGE:0:U
-compression            uncompressed:COUNTER:0:U, compressed:COUNTER:0:U
 compression_ratio      value:GAUGE:0:2
-connections            value:COUNTER:0:U
+compression            uncompressed:DERIVE:0:U, compressed:DERIVE:0:U
+connections            value:DERIVE:0:U
 conntrack              entropy:GAUGE:0:4294967295
 contextswitch          contextswitches:DERIVE:0:U
 counter                        value:COUNTER:U:U
 cpufreq                        value:GAUGE:0:U
-cpu                    value:COUNTER:0:4294967295
-current                        value:GAUGE:U:U
+cpu                    value:DERIVE:0:U
 current_connections    value:GAUGE:0:U
 current_sessions       value:GAUGE:0:U
+current                        value:GAUGE:U:U
 delay                  seconds:GAUGE:-1000000:1000000
 derive                 value:DERIVE:0:U
-df                     used:GAUGE:0:1125899906842623, free:GAUGE:0:1125899906842623
 df_complex             value:GAUGE:0:U
 df_inodes              value:GAUGE:0:U
+df                     used:GAUGE:0:1125899906842623, free:GAUGE:0:1125899906842623
 disk_latency           read:GAUGE:0:U, write:GAUGE:0:U
-disk_merged            read:COUNTER:0:4294967295, write:COUNTER:0:4294967295
-disk_octets            read:COUNTER:0:17179869183, write:COUNTER:0:17179869183
-disk_ops               read:COUNTER:0:4294967295, write:COUNTER:0:4294967295
-disk_ops_complex       value:COUNTER:0:4294967296
-disk_time              read:COUNTER:0:1000000, write:COUNTER:0:1000000
-dns_answer             value:COUNTER:0:65535
-dns_notify             value:COUNTER:0:65535
-dns_octets             queries:COUNTER:0:125000000, responses:COUNTER:0:125000000
-dns_opcode             value:COUNTER:0:65535
+disk_merged            read:DERIVE:0:U, write:DERIVE:0:U
+disk_octets            read:DERIVE:0:U, write:DERIVE:0:U
+disk_ops_complex       value:DERIVE:0:U
+disk_ops               read:DERIVE:0:U, write:DERIVE:0:U
+disk_time              read:DERIVE:0:U, write:DERIVE:0:U
+dns_answer             value:DERIVE:0:U
+dns_notify             value:DERIVE:0:U
+dns_octets             queries:DERIVE:0:U, responses:DERIVE:0:U
+dns_opcode             value:DERIVE:0:U
 dns_qtype_cached       value:GAUGE:0:4294967295
-dns_qtype              value:COUNTER:0:65535
-dns_query              value:COUNTER:0:65535
-dns_question           value:COUNTER:0:65535
-dns_rcode              value:COUNTER:0:65535
-dns_reject             value:COUNTER:0:65535
-dns_request            value:COUNTER:0:65535
-dns_resolver           value:COUNTER:0:65535
-dns_response           value:COUNTER:0:65535
-dns_transfer           value:COUNTER:0:65535
-dns_update             value:COUNTER:0:65535
-dns_zops               value:COUNTER:0:65535
+dns_qtype              value:DERIVE:0:U
+dns_query              value:DERIVE:0:U
+dns_question           value:DERIVE:0:U
+dns_rcode              value:DERIVE:0:U
+dns_reject             value:DERIVE:0:U
+dns_request            value:DERIVE:0:U
+dns_resolver           value:DERIVE:0:U
+dns_response           value:DERIVE:0:U
+dns_transfer           value:DERIVE:0:U
+dns_update             value:DERIVE:0:U
+dns_zops               value:DERIVE:0:U
 email_check            value:GAUGE:0:U
 email_count            value:GAUGE:0:U
 email_size             value:GAUGE:0:U
@@ -63,74 +63,74 @@ entropy                     entropy:GAUGE:0:4294967295
 fanspeed               value:GAUGE:0:U
 file_size              bytes:GAUGE:0:U
 files                  value:GAUGE:0:U
+fork_rate              value:DERIVE:0:U
 frequency              frequency:GAUGE:0:U
 frequency_offset       ppm:GAUGE:-1000000:1000000
-fscache_stat           value:COUNTER:0:4294967295
-fork_rate              value:DERIVE:0:U
+fscache_stat           value:DERIVE:0:U
 gauge                  value:GAUGE:U:U
-http_request_methods   count:COUNTER:0:134217728
-http_requests          count:COUNTER:0:134217728
-http_response_codes    count:COUNTER:0:134217728
+http_request_methods   count:DERIVE:0:U
+http_requests          count:DERIVE:0:U
+http_response_codes    count:DERIVE:0:U
 humidity               value:GAUGE:0:100
-if_collisions          value:COUNTER:0:4294967295
-if_dropped             rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295
-if_errors              rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295
-if_multicast           value:COUNTER:0:4294967295
-if_octets              rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295
-if_packets             rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295
-if_rx_errors           value:COUNTER:0:4294967295
-if_tx_errors           value:COUNTER:0:4294967295
+if_collisions          value:DERIVE:0:U
+if_dropped             rx:DERIVE:0:U, tx:DERIVE:0:U
+if_errors              rx:DERIVE:0:U, tx:DERIVE:0:U
+if_multicast           value:DERIVE:0:U
+if_octets              rx:DERIVE:0:U, tx:DERIVE:0:U
+if_packets             rx:DERIVE:0:U, tx:DERIVE:0:U
+if_rx_errors           value:DERIVE:0:U
+if_tx_errors           value:DERIVE:0:U
 invocations            value:DERIVE:0:U
-io_octets              rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295
-io_packets             rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295
-ipt_bytes              value:COUNTER:0:134217728
-ipt_packets            value:COUNTER:0:134217728
-irq                    value:COUNTER:U:65535
+io_octets              rx:DERIVE:0:U, tx:DERIVE:0:U
+io_packets             rx:DERIVE:0:U, tx:DERIVE:0:U
+ipt_bytes              value:DERIVE:0:U
+ipt_packets            value:DERIVE:0:U
+irq                    value:DERIVE:0:U
 latency                        value:GAUGE:0:65535
 links                  value:GAUGE:0:U
 load                   shortterm:GAUGE:0:100, midterm:GAUGE:0:100, longterm:GAUGE:0:100
-memcached_command      value:COUNTER:0:U
+memcached_command      value:DERIVE:0:U
 memcached_connections  value:GAUGE:0:U
 memcached_items                value:GAUGE:0:U
-memcached_octets       rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295
-memcached_ops          value:COUNTER:0:134217728
+memcached_octets       rx:DERIVE:0:U, tx:DERIVE:0:U
+memcached_ops          value:DERIVE:0:U
 memory                 value:GAUGE:0:281474976710656
 multimeter             value:GAUGE:U:U
-mysql_commands         value:COUNTER:0:U
-mysql_handler          value:COUNTER:0:U
-mysql_locks            value:COUNTER:0:U
-mysql_log_position     value:COUNTER:0:4294967295
-mysql_octets           rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295
-nfs_procedure          value:COUNTER:0:4294967295
+mysql_commands         value:DERIVE:0:U
+mysql_handler          value:DERIVE:0:U
+mysql_locks            value:DERIVE:0:U
+mysql_log_position     value:DERIVE:0:U
+mysql_octets           rx:DERIVE:0:U, tx:DERIVE:0:U
+nfs_procedure          value:DERIVE:0:U
 nginx_connections      value:GAUGE:0:U
-nginx_requests         value:COUNTER:0:134217728
-node_octets            rx:COUNTER:0:U, tx:COUNTER:0:U
+nginx_requests         value:DERIVE:0:U
+node_octets            rx:DERIVE:0:U, tx:DERIVE:0:U
 node_rssi              value:GAUGE:0:255
-node_stat              value:COUNTER:0:4294967295
+node_stat              value:DERIVE:0:U
 node_tx_rate           value:GAUGE:0:127
-operations             value:COUNTER:0:4294967295
+operations             value:DERIVE:0:U
 percent                        percent:GAUGE:0:100.1
-pg_blks                        value:COUNTER:0:U
+pg_blks                        value:DERIVE:0:U
 pg_db_size             value:GAUGE:0:U
-pg_n_tup_c             value:COUNTER:0:U
+pg_n_tup_c             value:DERIVE:0:U
 pg_n_tup_g             value:GAUGE:0:U
 pg_numbackends         value:GAUGE:0:U
-pg_scan                        value:COUNTER:0:U
-pg_xact                        value:COUNTER:0:U
+pg_scan                        value:DERIVE:0:U
+pg_xact                        value:DERIVE:0:U
 ping_droprate          value:GAUGE:0:100
 ping                   ping:GAUGE:0:65535
 ping_stddev            value:GAUGE:0:65535
 players                        value:GAUGE:0:1000000
 power                  value:GAUGE:0:U
-protocol_counter       value:COUNTER:0:U
+protocol_counter       value:DERIVE:0:U
+ps_code                        value:GAUGE:0:9223372036854775807
 ps_count               processes:GAUGE:0:1000000, threads:GAUGE:0:1000000
-ps_cputime             user:COUNTER:0:16000000, syst:COUNTER:0:16000000
-ps_pagefaults          minflt:COUNTER:0:9223372036854775807, majflt:COUNTER:0:9223372036854775807
+ps_cputime             user:DERIVE:0:U, syst:DERIVE:0:U
+ps_data                        value:GAUGE:0:9223372036854775807
 ps_disk_octets         read:DERIVE:0:U, write:DERIVE:0:U
 ps_disk_ops            read:DERIVE:0:U, write:DERIVE:0:U
+ps_pagefaults          minflt:DERIVE:0:U, majflt:DERIVE:0:U
 ps_rss                 value:GAUGE:0:9223372036854775807
-ps_code                        value:GAUGE:0:9223372036854775807
-ps_data                        value:GAUGE:0:9223372036854775807
 ps_stacksize           value:GAUGE:0:9223372036854775807
 ps_state               value:GAUGE:0:65535
 ps_vm                  value:GAUGE:0:9223372036854775807
@@ -141,14 +141,14 @@ response_time             value:GAUGE:0:U
 route_etx              value:GAUGE:0:U
 route_metric           value:GAUGE:0:U
 routes                 value:GAUGE:0:U
-serial_octets          rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295
+serial_octets          rx:DERIVE:0:U, tx:DERIVE:0:U
 signal_noise           value:GAUGE:U:0
 signal_power           value:GAUGE:U:0
 signal_quality         value:GAUGE:0:U
 snr                    value:GAUGE:0:U
 spam_check             value:GAUGE:0:U
 spam_score             value:GAUGE:U:U
-swap_io                        value:DERIVE:0:1099511627776
+swap_io                        value:DERIVE:0:U
 swap                   value:GAUGE:0:1099511627776
 tcp_connections                value:GAUGE:0:4294967295
 temperature            value:GAUGE:-273.15:U
@@ -167,11 +167,11 @@ total_values              value:DERIVE:0:U
 uptime                 value:GAUGE:0:4294967295
 users                  users:GAUGE:0:65535
 vcpu                   value:GAUGE:0:U
-virt_cpu_total         ns:COUNTER:0:256000000000
-virt_vcpu              ns:COUNTER:0:1000000000
-vmpage_action          value:COUNTER:0:4294967295
-vmpage_faults          minflt:COUNTER:0:9223372036854775807, majflt:COUNTER:0:9223372036854775807
-vmpage_io              in:COUNTER:0:4294967295, out:COUNTER:0:4294967295
+virt_cpu_total         ns:DERIVE:0:U
+virt_vcpu              ns:DERIVE:0:U
+vmpage_action          value:DERIVE:0:U
+vmpage_faults          minflt:DERIVE:0:U, majflt:DERIVE:0:U
+vmpage_io              in:DERIVE:0:U, out:DERIVE:0:U
 vmpage_number          value:GAUGE:0:4294967295
 volatile_changes       value:GAUGE:0:U
 voltage_threshold      value:GAUGE:U:U, threshold:GAUGE:U:U