Interview Prep/Monitoring & Observability/Prometheus storage, memory and cardinality

Snapshot via `/api/v1/admin/tsdb/snapshot` returns `404 page not found`

BeginnerTroubleshootingPrometheus storage, memory and cardinality
Answer

Likely causes → Admin APIs are disabled by default.

Diagnose → curl -XPOST localhost:9090/api/v1/admin/tsdb/snapshot returns 404 or "admin APIs disabled".

Fix → Start with --web.enable-admin-api (Operator: enableAdminAPI: true), take the snapshot, then disable again.

Prevent → Keep admin APIs off in normal operation and protect the endpoint.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Prometheus storage, memory and cardinality