@cryptotaxi247 / netdata-1 / commits / 5f1cd798f

Don't add duplicate _total suffixes for the prometheus go.d module (#10674)

Vladimir Kobal committed Feb 25, 2021 at 15:11 UTC 5f1cd798f3d91789489ed52a1bb58931a3c69b1e
1 file changed +2 -1
exporting/prometheus/prometheus.c
+2 -1
@@ -660,7 +660,8 @@ static void rrd_stats_api_v1_charts_allmetrics_prometheus(
660 rd->algorithm == RRD_ALGORITHM_PCENT_OVER_DIFF_TOTAL) {
661 p.type = "counter";
662 p.relation = "delta gives";
663 - p.suffix = "_total";
663 + if (!prometheus_collector)
664 + p.suffix = "_total";
665 }
666
667 if (homogeneous) {