summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-03-14 13:04:38 +0100
committerFlorin Coras <florin.coras@gmail.com>2022-03-31 15:51:26 +0000
commit66c858385f3dc1c36682771424a8a9e5a6cd8355 (patch)
tree7ed7b67b6ee084ce0c1cd9a6d25e3021d3110442 /src/plugins
parent8f60318aca8f1df267f1b9069bc9697e9c4b65b0 (diff)
stats: convert error counters to normal counters
Change-Id: I9794da718805b40cc922e4f3cf316255398029a9 Type: improvement Signed-off-by: Damjan Marion <damarion@cisco.com> Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/prom/prom.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/plugins/prom/prom.c b/src/plugins/prom/prom.c
index 0b03a7adb0b..6db50204d65 100644
--- a/src/plugins/prom/prom.c
+++ b/src/plugins/prom/prom.c
@@ -98,26 +98,6 @@ dump_counter_vector_combined (stat_segment_data_t *res, u8 *s, u8 used_only)
}
static u8 *
-dump_error_index (stat_segment_data_t *res, u8 *s, u8 used_only)
-{
- u8 *name;
- int j;
-
- name = make_stat_name (res->name);
-
- for (j = 0; j < vec_len (res->error_vector); j++)
- {
- if (used_only && !res->error_vector[j])
- continue;
- s = format (s, "# TYPE %v counter\n", name);
- s =
- format (s, "%v{thread=\"%d\"} %lld\n", name, j, res->error_vector[j]);
- }
-
- return s;
-}
-
-static u8 *
dump_scalar_index (stat_segment_data_t *res, u8 *s, u8 used_only)
{
u8 *name;
@@ -179,9 +159,6 @@ retry:
case STAT_DIR_TYPE_COUNTER_VECTOR_COMBINED:
s = dump_counter_vector_combined (&res[i], s, used_only);
break;
- case STAT_DIR_TYPE_ERROR_INDEX:
- s = dump_error_index (&res[i], s, used_only);
- break;
case STAT_DIR_TYPE_SCALAR_INDEX:
s = dump_scalar_index (&res[i], s, used_only);