diff options
| author | Emile <hanemile@protonmail.com> | 2020-01-30 14:56:24 +0100 |
|---|---|---|
| committer | Emile <hanemile@protonmail.com> | 2020-01-30 14:56:24 +0100 |
| commit | 473114cd6b539b10e6d1dcb2cc7f5cebb51da8fd (patch) | |
| tree | 7a9f6d3b132c46a05caa4fe6cf11e3b3b6c37d50 | |
| parent | a2a44481bcdb8b0a7bf15996dc05280a9a48f2ea (diff) | |
updated the metric name
| -rw-r--r-- | src/http.go | 2 |
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) } } |
