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 976b32f..7c677bf 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 bfd349f..f073449 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 e405567..2006a87 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