Code

pf plugin: split up in GAUGE and COUNTER
authorStefan Rinkes <stefan.rinkes@gmail.com>
Sun, 17 Apr 2011 08:07:06 +0000 (10:07 +0200)
committerStefan Rinkes <stefan.rinkes@gmail.com>
Sun, 17 Apr 2011 08:07:40 +0000 (10:07 +0200)
src/pf.c
src/types.db
types.pfrules.db

index 976b32f8e15fad75a7a4787f8db15e48928411e7..7c677bf62b920ad662e8cadfe3da8495fbf1b0fc 100644 (file)
--- a/src/pf.c
+++ b/src/pf.c
@@ -28,7 +28,7 @@ submit_counter(const char *type, const char *inst, counter_t val)
        value_t         values[1];
        value_list_t    vl = VALUE_LIST_INIT;
 
-       values[0].gauge = val;
+       values[0].counter = val;
 
        vl.values = values;
        vl.values_len = 1;
index bfd349f91ce28d0e84244f3d7950ce319062b35e..f073449f158f738d625aeff344c6fd24a727571a 100644 (file)
@@ -1,4 +1,4 @@
-pf_counters    value:GAUGE:U:U
-pf_limits      value:GAUGE:U:U
-pf_state       value:GAUGE:U:U
-pf_source      value:GAUGE:U:U
+pf_counters    value:COUNTER:0:U
+pf_limits      value:COUNTER:0:U
+pf_state       value:COUNTER:0:U
+pf_source      value:COUNTER:0:U
index e405567b91133bb4f311497712feaac22c59826d..2006a878ecb7d38de17eaa8bd29d16b9c6fb0504 100644 (file)
@@ -1,4 +1,4 @@
-states_cur     value:GAUGE:U:U
-states_tot     value:GAUGE:U:U
-evaluations    value:GAUGE:U:U
-bytes          value:GAUGE:U:U
+states_cur     value:GAUGE:0:U
+states_tot     value:COUNTER:0:U
+evaluations    value:COUNTER:0:U
+pf_bytes       value:COUNTER:0:U