diff options
author | Vladimir Kobal <vlad@prokk.net> | 2021-02-25 15:11:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-25 16:11:49 +0300 |
commit | 5f1cd798f3d91789489ed52a1bb58931a3c69b1e (patch) | |
tree | d8f5ddc50f7d6f399854256c828f7b8a1a93e67f /exporting | |
parent | cb99a3089c7e6054345f2bf0acb75747a6724594 (diff) |
Don't add duplicate _total suffixes for the prometheus go.d module (#10674)
Diffstat (limited to 'exporting')
-rw-r--r-- | exporting/prometheus/prometheus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/exporting/prometheus/prometheus.c b/exporting/prometheus/prometheus.c index 371f5a5201..ab919acd81 100644 --- a/exporting/prometheus/prometheus.c +++ b/exporting/prometheus/prometheus.c @@ -660,7 +660,8 @@ static void rrd_stats_api_v1_charts_allmetrics_prometheus( rd->algorithm == RRD_ALGORITHM_PCENT_OVER_DIFF_TOTAL) { p.type = "counter"; p.relation = "delta gives"; - p.suffix = "_total"; + if (!prometheus_collector) + p.suffix = "_total"; } if (homogeneous) { |