pkg/process: remove prometheus help (#2914)
the current prometheus help messages have enough unexpected characters that they are breaking prometheus parsing. they may also be triggering prometheus to expect more from us (type annotations) than we have to offer. we're really not adding a lot of value with these help messages, so just take them out Change-Id: I9b723447a294bb492a6292480e9f88634346a80b
This commit is contained in:
parent
537769d7fa
commit
b3f9a8813d
@ -84,8 +84,6 @@ 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, "# HELP %s %s\n%s %g\n",
|
||||
metric, strings.ReplaceAll(name, "\n", " "),
|
||||
metric, val)
|
||||
_, _ = fmt.Fprintf(w, "%s %g\n", metric, val)
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user