fhemberger / prometheus-formatter

Browser extension which makes plain Prometheus/OpenMetrics endpoints easier to read
126 stars 10 forks source link

Detect Prometheus also by HTTP Headers #1

Closed bastischubert closed 3 years ago

bastischubert commented 6 years ago

Hi,

"text/plain; version=0.0.4" could also be a good marker for detecting prometheus output instead of relying on /metrics or other path informations

source: https://prometheus.io/docs/instrumenting/exposition_formats/

@RichiH

fhemberger commented 6 years ago

Hi, unfortunately I don't have access to headers in the Chrome extension.

fhemberger commented 3 years ago

I'm closing this for now. prometheus-formatter will only honor text/plainand application/openmetrics-text content types. For now I won't check explicitly for a version number in the header as some exporters might not provide it.

For text/plain I'll still limit parsing to the defined metric endpoints, while this setting will be ignored for application/openmetrics-text.