prometheus/web
Julius Volz 9937c5f9eb Add API endpoint for getting Prometheus' metrics about itself
This adds a /api/v1/status/self_metrics endpoint that allows the frontend to
fetch metrics about the server itself, making it easier to construct frontend
pages that show the current server state. This is needed because fetching
metrics from its own /metrics endpoint would be both hard to parse and also
require CORS permissions on that endpoint (for cases where the frontend
dashboard is not the same origin, at least).

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2026-03-31 12:30:35 +02:00
..
api Add API endpoint for getting Prometheus' metrics about itself 2026-03-31 12:30:35 +02:00
ui Add API endpoint for getting Prometheus' metrics about itself 2026-03-31 12:30:35 +02:00
federate.go Refactor parse.go into an instance-based Parser interface 2026-02-11 11:21:49 +01:00
federate_test.go chore: fix httpNoBody issues from gocritic 2026-03-02 20:06:30 +01:00
web.go tsdb: use float64 for retention percentage 2026-03-26 12:39:22 +01:00
web_test.go chore: fix httpNoBody issues from gocritic 2026-03-02 20:06:30 +01:00