alerta / prometheus-config

Prometheus config for Alerta
MIT License
255 stars 102 forks source link

Prometheus webhook_configs returns 404 #3

Closed gfliker closed 8 years ago

gfliker commented 8 years ago

While hitting this end point from the Alert manager were getting a 404 /webhooks/prometheus

Please advise and many thanks

satterly commented 8 years ago

This is a POST only endpoint.

Try curl -XPOST /webhooks/prometheus and you should get something like ...

{
  "status": "error",
  "message": "no alerts in Prometheus notification payload"
}
satterly commented 8 years ago

Or if you're running alerta in a docker container you'll need to add /api to the endpoint path like this ... /api/webhooks/prometheus.

gfliker commented 8 years ago

Im using the docker version ,will verify soon

Thx

satterly commented 8 years ago

You might find this answer useful ... https://github.com/alerta/prometheus-config/issues/2#issuecomment-188719201

satterly commented 8 years ago

@gfliker I've added a specific reference in the README to configuring Alertmanager when deploying Alerta using a Docker container so I'll close this issue as resolved. Open a new issue if you're still having problems.