OpenMetrics support (stateset and info)

161 views
Skip to first unread message

Alexander Broekhuis

unread,
Jul 7, 2021, 5:28:23 PM7/7/21
to Prometheus Users
Hi all,

I'm working on a project were we create metrics based on the OpenMetrics spec. This also includes stateset and the info metric. 
Afaik, prometheus does not yet support those metrics. Is there any timeframe on when the full OpenMetrics spec will be supported?

Also, is it the expected behaviour if the scraper encounters an unknown metric, it will stop processing at that point? 

TiA!

Alexander Broekhuis

unread,
Jul 20, 2021, 9:12:48 AM7/20/21
to Prometheus Users
I had some help off-list stating that this should just work. After looking into it a bit more, it was simply a matter of adding the right content type to my own endpoint's response.

So adding "application/openmetrics-text; version=1.0.0; charset=utf-8" made it all work as expected!

Op woensdag 7 juli 2021 om 23:28:23 UTC+2 schreef Alexander Broekhuis:

Julius Volz

unread,
Jul 20, 2021, 11:00:59 AM7/20/21
to Alexander Broekhuis, Prometheus Users
On Wed, Jul 7, 2021 at 11:28 PM Alexander Broekhuis <a.bro...@gmail.com> wrote:
Also, is it the expected behaviour if the scraper encounters an unknown metric, it will stop processing at that point? 

What do you mean with "an unknown metric"?
Reply all
Reply to author
Forward
0 new messages