Don't add duplicate _total suffixes for the prometheus go.d module (#10674)
This commit is contained in:
parent
cb99a3089c
commit
5f1cd798f3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue