about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-01-30 14:56:24 +0100
committerEmile <hanemile@protonmail.com>2020-01-30 14:56:24 +0100
commit473114cd6b539b10e6d1dcb2cc7f5cebb51da8fd (patch)
tree7a9f6d3b132c46a05caa4fe6cf11e3b3b6c37d50
parenta2a44481bcdb8b0a7bf15996dc05280a9a48f2ea (diff)
updated the metric name
-rw-r--r--src/http.go2
1 files changed, 1 insertions, 1 deletions
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)
 	}
 }