diff options
Diffstat (limited to 'metrics.go')
-rw-r--r-- | metrics.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/metrics.go b/metrics.go index 5881c64..5d04517 100644 --- a/metrics.go +++ b/metrics.go @@ -16,6 +16,10 @@ func metricHandler(w http.ResponseWriter, r *http.Request) { metricsString += fmt.Sprintf("galaxy_star_count{galaxy_nr=\"%d\"} %d\n", i, starCount[i]) } + for i := 0; i < len(errorCount); i++ { + metricsString += fmt.Sprintf("galaxy_error_count{galaxy_nr=\"%d\"} %d\n", i, errorCount[i]) + } + log.Println(metricsString) _, _ = fmt.Fprintf(w, metricsString) } |