diff --git a/pkg/process/debug.go b/pkg/process/debug.go index f28042eb5..d682a2c74 100644 --- a/pkg/process/debug.go +++ b/pkg/process/debug.go @@ -84,6 +84,7 @@ func prometheus(w http.ResponseWriter, r *http.Request) { // (https://prometheus.io/docs/concepts/metric_types/) monkit.Default.Stats(func(name string, val float64) { metric := sanitize(name) - _, _ = fmt.Fprintf(w, "%s %g\n", metric, val) + _, _ = fmt.Fprintf(w, "# TYPE %s gauge\n%s %g\n", + metric, metric, val) }) }