[tahoe-lafs-trac-stream] [Tahoe-LAFS] #3786: Add OpenMetrics-format endpoint for scraping with Prometheus
Tahoe-LAFS
trac at tahoe-lafs.org
Thu Sep 2 15:37:36 UTC 2021
#3786: Add OpenMetrics-format endpoint for scraping with Prometheus
-------------------------------+---------------------------
Reporter: hacklschorsch | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: undecided
Component: code-frontend-web | Version: unknown
Keywords: statistics | Launchpad Bug:
-------------------------------+---------------------------
I am creating monitoring infrastructure for the upcoming
[https://private.storage/ PrivateStorage SaaS].
I'd like to add an [https://openmetrics.io/ OpenMetrics] format statistics
endpoint to be scraped by [https://prometheus.io/ 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
}}}
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3786>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list