From c06a11787d1982c19bc8c2c0be95e51cf572c8ab Mon Sep 17 00:00:00 2001 From: Michael Burman Date: Thu, 5 Oct 2023 16:48:36 +0300 Subject: [PATCH] Fix naming of _total metric --- .../k8ssandra/metrics/prometheus/CassandraTasksExports.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/management-api-agent-common/src/main/java/io/k8ssandra/metrics/prometheus/CassandraTasksExports.java b/management-api-agent-common/src/main/java/io/k8ssandra/metrics/prometheus/CassandraTasksExports.java index 51bd2a97..ed55820c 100644 --- a/management-api-agent-common/src/main/java/io/k8ssandra/metrics/prometheus/CassandraTasksExports.java +++ b/management-api-agent-common/src/main/java/io/k8ssandra/metrics/prometheus/CassandraTasksExports.java @@ -342,8 +342,8 @@ List getCompactionStats() { Collector.MetricFamilySamples.Sample totalSample = new Collector.MetricFamilySamples.Sample( - protoCompleted.getMetricName(), - protoCompleted.getLabelNames(), + protoTotal.getMetricName(), + protoTotal.getLabelNames(), labelValues, Double.parseDouble(c.get("total")));