discourse / prometheus_exporter

A framework for collecting and aggregating prometheus metrics
MIT License
525 stars 153 forks source link

Supporting OpenMetrics? #244

Open modulitos opened 1 year ago

modulitos commented 1 year ago

Are there any plans to support the OpenMetrics format? https://prometheus.io/docs/instrumenting/exposition_formats/#openmetrics-text-format

There's an issue in the Prometheus Ruby Client which documents their plan for supporting OpenMetrics: https://github.com/prometheus/client_ruby/issues/189

It seems like we can do something similar with this project. But I want to check if there's any existing artifacts or advice if someone were to proceed with adding OpenMetrics support.

SamSaffron commented 1 year ago

I would say given it is not fully cross compatible this should be a switch (opt in)

You can opt for open metrics format and then get /metrics that is open metric compatible or you get the default format.

Really want to follow the lead here on the ecosystem. Would be nice to have an implementation so feel free to work on it.