From 473114cd6b539b10e6d1dcb2cc7f5cebb51da8fd Mon Sep 17 00:00:00 2001 From: Emile Date: Thu, 30 Jan 2020 14:56:24 +0100 Subject: updated the metric name --- src/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http.go') diff --git a/src/http.go b/src/http.go index 1ff432b..04ade17 100644 --- a/src/http.go +++ b/src/http.go @@ -76,6 +76,6 @@ func metricsHandler(w http.ResponseWriter, req *http.Request) { // return the amount of passwords catched from a given city for k, v := range metricsCityNum { - fmt.Fprintf(w, "a_metric{city=\"%s\"} %d\n", strings.ToLower(k), v) + fmt.Fprintf(w, "location{city=\"%s\"} %d\n", strings.ToLower(k), v) } } -- cgit 1.4.1