#3786 closed enhancement (fixed)

Add OpenMetrics-format endpoint for scraping with Prometheus

Reported by: hacklschorsch Owned by: hacklschorsch
Priority: normal Milestone: undecided
Component: code-frontend-web Version: unknown
Keywords: statistics Cc: exarkun
Launchpad Bug:

Description

I am creating monitoring infrastructure for the upcoming PrivateStorage SaaS. I'd like to add an OpenMetrics format statistics endpoint to be scraped by Prometheus.

The de-facto industry standard Prometheus scrapes metrics endpoints that by default are available on the things under monitoring on some HTTP server under /metrics.

I see there's already a /statistics?t=json endpoint that seems very similar to what I want to build, and also lots of useful things in misc/operations_helpers/munin. My plan so far is to add a /statistics?t=openmetrics endpoint exporting the same values as the json, but in OpenMetrics?.

In the #tahoe-lafs IRC channel on Libera:

hacklschorsch | Does that make sense?  Is there a better way?
         jpds | hacklschorsch: Yes, a /metrics endpoint would be great
     itamarst | hacklschorsch: that sounds plausible to me

Change History (5)

comment:1 Changed at 2021-09-15T16:45:09Z by hacklschorsch

  • Owner set to hacklschorsch

comment:2 Changed at 2021-09-15T16:45:30Z by hacklschorsch

  • Status changed from new to assigned

comment:4 Changed at 2022-09-22T03:35:21Z by Florian Sesser <florian@…>

In 6310774/trunk:

Add documentation on OpenMetrics? statistics endpoint.

references ticket:3786

comment:5 Changed at 2023-01-25T16:13:41Z by exarkun

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.