From 411f34e30db5d3a6ab83805dd7c79be71c93d1c2 Mon Sep 17 00:00:00 2001 From: Jason Piper Date: Tue, 9 Nov 2021 11:31:08 +0000 Subject: [PATCH] Replace all hyphens with underscores in metrics --- exporter/exporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/exporter.go b/exporter/exporter.go index c663b6d..cb971ae 100644 --- a/exporter/exporter.go +++ b/exporter/exporter.go @@ -42,7 +42,7 @@ func NewExporter(uri url.URL, insecure bool, user, password string) *Exporter { metricsURI.RawQuery = q.Encode() asyncMetricsURI := uri - q.Set("query", "select replaceRegexpOne(toString(metric), '-', '_') AS metric, value from system.asynchronous_metrics") + q.Set("query", "select replaceRegexpAll(toString(metric), '-', '_') AS metric, value from system.asynchronous_metrics") asyncMetricsURI.RawQuery = q.Encode() eventsURI := uri