Extend sanitizedChars array

We are using metrics names devided with | so, we have to name metrics with | and \.
lets extend that array to fix naming
This commit is contained in:
Aleksey Shirokih 2016-07-10 12:42:29 +04:00 committed by GitHub
parent e1c3800cd9
commit 38d28d792b
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ import (
) )
var ( var (
sanitizedChars = strings.NewReplacer("/", "_", "@", "_", " ", "_", "-", "_", ".", "_") sanitizedChars = strings.NewReplacer("/", "_", "@", "_", " ", "_", "-", "_", ".", "_", "|", "_", "\\", "")
// Prometheus metric names must match this regex // Prometheus metric names must match this regex
// see https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels // see https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels