Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thanos ruler: Alertmanager v0.27.0 /api/v1 endpoints deprecated #7208

Closed
federicopires opened this issue Mar 13, 2024 · 2 comments
Closed

Thanos ruler: Alertmanager v0.27.0 /api/v1 endpoints deprecated #7208

federicopires opened this issue Mar 13, 2024 · 2 comments

Comments

@federicopires
Copy link

Thanos, Prometheus and Golang version used:

v0.34.1

Object Storage Provider:
AWS S3

What happened:
Thanos ruler is randomly failing to send alerts to Alertmanager v0.27.0 with bad response status 410 Gone

What you expected to happen:
No errors while sending alerts

How to reproduce it (as minimally and precisely as possible):
Install latest Alertmanager v0.27.0 (I'm using latest kube-prometheus-stack version with their implementation of thanos ruler) and Thanos ruler 0.34.1 setup to send alerts to it

Full logs to relevant components:
Thanos ruler:

err="bad response status 410 Gone from \"http://prometheus-kube-prometheus-alertmanager.monitoring.svc.cluster.local:9093/api/v1/alerts

Alertmanager:
ts=2024-03-13T14:32:22.436Z caller=v1_deprecation_router.go:51 level=warn component=api version=v1 msg="v1 API received a request on a removed endpoint" path=/api/v1/alerts method=POST

Anything else we need to know:
Related to prometheus/alertmanager#2970

@jacobbaungard
Copy link
Contributor

v2 will be default by the next release #7123 . Until then you can change the API version in the alertmanager config: https://thanos.io/v0.34/components/rule.md/#configuration

@MichaHoffmann
Copy link
Contributor

This is fixed by upgrading to a recent thanos version, Ill close this; please reopen if I missed something!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants