Bjoern Rabenstein
unread,Feb 10, 2020, 10:46:13 AM2/10/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ben Kochie, Julien Pivotto, Richard Hartmann, Prometheus Developers
On 10.02.20 13:56, Ben Kochie wrote:
> This might be interesting to include in promhttp. If there are useful headers,
> even if they're not strictly necessary, we can include them in the defaults.
`promhttp` is only returning a handler for the metrics endpoint (which
users usually bind to `/metrics`). The handler could add headers, but
they would only affect the `/metrics` endpoint then. `promhttp` is not
the right place to add certain headers to every HTTP request.
> I was also thinking we might want to improve on our standard exporter landing
> page. We could have a prometheus/common helper function for building the /
> landing page for various exporters.
That's long standing
https://github.com/prometheus/client_golang/issues/166 . Help wanted,
PRs welcome. This could even be a GSoC or Community Bridge project.
--
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email]
bjo...@rabenste.in