Skip to content

Commit 02b6c29

Browse files
authored
Merge pull request #18 from oarfah/master
bugfix: not a valid metric name source=emq_exporter.go:99
2 parents 1f4675e + 99856c7 commit 02b6c29

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)