Bug: mimirtool-darwin-amd64 is using deprecated (Gone) API
#11,676 opened on Jun 9, 2025
Repository metrics
- Stars
- (5,181 stars)
- PR merge metrics
- (PR metrics pending)
Description
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