Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(hermes): fix metrics content-type
Openmetrics specification expects its own content-type instead of plain text. I didn't set it before as Prometheus still accepts text format but apparently there are some scrapers (like datadog) that decide dynamically what format to use for parsing based on the content type and our format follows Openmetrics specification. Prometheus should be able to parse it but weirdly it didn't work in our situation. An example of inconsistency is how counters are represented. In Openmetrics specification the metric name is appended by `_total` whereas normal prometheus just uses the metric name.
- Loading branch information