Skip to content

Commit 99856c7

Browse files
author
fangjianfeng
committed
bugfix: not a valid metric name source=emq_exporter.go:99
1 parent 1f4675e commit 99856c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

emq_exporter.go

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) {
9494
e.mu.Unlock()
9595

9696
for _, i := range metricList {
97+
i.name = strings.Replace(i.name, ".", "_", -1)
9798
m, err := newMetric(i)
9899
if err != nil {
99100
log.Errorf("newMetric: %v", err)

0 commit comments

Comments
 (0)