replace invalid chars in metric name

This commit is contained in:
Ulric Qin 2022-06-29 08:57:38 +08:00
parent be8124772b
commit b4d2c7f28d
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ import (
const agentHostnameLabelKey = "agent_hostname"
var metricReplacer = strings.NewReplacer("-", "_", ".", "_")
var metricReplacer = strings.NewReplacer("-", "_", ".", "_", " ", "_", "'", "_", "\"", "_")
type InputReader struct {
input inputs.Input