-
Notifications
You must be signed in to change notification settings - Fork 151
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
The alertmanger send notifys results 403 #205
Comments
My promgen web is I guess there must be a url router for promgen to accept request to save the alerts for alertworker (No CSRF, No cookie needed) |
Sorry for the confusion |
The '/api/v1/alerts' seems to be a proxy api which fetches the alerts from alertmanager. I think the promgen must have a route which alertmanager can push alerts to save to the mysql. |
# Alertmanager Proxy
# Promgen does not pretend to be an Alertmanager so these can be slightly different
path("proxy/v1/alerts", csrf_exempt(proxy.ProxyAlerts.as_view()), name="proxy-alerts"), # Promgen API
path('api/v1/alerts', csrf_exempt(views.Alert.as_view()), name='alert'), though I do want to do a bit of refactoring in the near future to better distinguish the Prometheus/Alertmanager proxy from the Promgen APIs |
I am new to Django, but I figure out that now, thank you very much. |
From the alertmanager log, it shows 403 when sending notify to Promgen.
The text was updated successfully, but these errors were encountered: