code refactor

This commit is contained in:
Ulric Qin 2022-04-16 23:35:04 +08:00
parent 148589ce0c
commit f849f8c7b9
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ func (r *Reader) gatherOnce() {
samples[i].Timestamp = now
}
samples[i].Metric = r.Instance.GetInputName() + "_" + samples[i].Metric
samples[i].Metric = r.Instance.GetInputName() + "_" + strings.ReplaceAll(samples[i].Metric, "-", "_")
r.Queue <- samples[i]
}
}