We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e53bdf commit 5214aaeCopy full SHA for 5214aae
collector/collector_test.go
@@ -49,6 +49,7 @@ func readMetric(m prometheus.Metric) MetricResult {
49
func sanitizeQuery(q string) string {
50
q = strings.Join(strings.Fields(q), " ")
51
q = strings.Replace(q, "(", "\\(", -1)
52
+ q = strings.Replace(q, "?", "\\?", -1)
53
q = strings.Replace(q, ")", "\\)", -1)
54
q = strings.Replace(q, "[", "\\[", -1)
55
q = strings.Replace(q, "]", "\\]", -1)
0 commit comments