Opened at 2021-09-02T15:37:36Z
Closed at 2023-01-25T16:13:41Z
#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:3 Changed at 2021-09-23T08:21:47Z by hacklschorsch
comment:4 Changed at 2022-09-22T03:35:21Z by Florian Sesser <florian@…>
In 6310774/trunk:
comment:5 Changed at 2023-01-25T16:13:41Z by exarkun
- Resolution set to fixed
- Status changed from assigned to closed
The code for this is in https://github.com/tahoe-lafs/tahoe-lafs/pull/1125 .