prometheus/web/api/v1
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
..
testdata Add API endpoint for getting Prometheus' metrics about itself 2026-03-31 12:30:35 +02:00
api.go Add API endpoint for getting Prometheus' metrics about itself 2026-03-31 12:30:35 +02:00
api_scenarios_test.go OpenAPI: Add support for stats 2026-01-30 14:21:03 +01:00
api_test.go Add API endpoint for getting Prometheus' metrics about itself 2026-03-31 12:30:35 +02:00
codec.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
codec_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
errors_test.go chore: fix httpNoBody issues from gocritic 2026-03-02 20:06:30 +01:00
json_codec.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
json_codec_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
openapi.go Add API endpoint for getting Prometheus' metrics about itself 2026-03-31 12:30:35 +02:00
openapi_coverage_test.go Add OpenAPI 3.2 specification generation for Prometheus HTTP API (#17825) 2026-01-29 13:36:13 +01:00
openapi_examples.go Add API endpoint for getting Prometheus' metrics about itself 2026-03-31 12:30:35 +02:00
openapi_golden_test.go web: switch from gopkg.in/yaml to go.yaml.in/yaml (#17979) 2026-02-03 14:15:35 +00:00
openapi_helpers.go Add OpenAPI 3.2 specification generation for Prometheus HTTP API (#17825) 2026-01-29 13:36:13 +01:00
openapi_paths.go Add API endpoint for getting Prometheus' metrics about itself 2026-03-31 12:30:35 +02:00
openapi_schemas.go OpenAPI: Add support for stats 2026-01-30 14:21:03 +01:00
openapi_test.go chore: fix httpNoBody issues from gocritic 2026-03-02 20:06:30 +01:00
test_helpers.go Refactor parse.go into an instance-based Parser interface 2026-02-11 11:21:49 +01:00
translate_ast.go PromQL: Add fill*() binop modifiers to provide default values for missing series 2026-01-15 07:56:21 +01:00