Bug: mimirtool-darwin-amd64 is using deprecated (Gone) API
#11.676 geöffnet am 9. Juni 2025
Repository-Metriken
- Stars
- (5.181 Stars)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
What is the bug?
mimirtool alertmanager get is using /alertmanager/api/v1/alerts API endpoint and so returning 410 Gone response. It must use /alertmanager/api/v2/alerts instead.
Full error:
mimirtool: error: GET request to http://localhost:9008/alertmanager/api/v1/alerts failed: server returned HTTP status: 410 Gone, body: "{"status":"deprecated","error":"The Alertmanager v1 API was deprecated in version 0.16.0 and is removed as of version 0.28.0 - please use the equivalent route in the v2 API"}\n", try --help
How to reproduce it?
Run mimirtool with "alertmanager get"
./mimirtool alertmanager get
--address=http://localhost:9008/alertmanager
--id=Tenant1
What did you think would happen?
Mimirtool must return the list of current alerts in Alert Manager.
What was your environment?
Mimirtool running locally on a Mac (Intel) in Monolithic mode.
Any additional context to share?
No response