Hi,
I am facing an issue with webhook notifications in Grafana. I have two separate notification channels configured:
- Slack Notification Channel: Returns a
400 Bad Request
error in Grafana logs. - Parny Call Application Notification Channel: Returns a
500 Internal Server Error
in Grafana logs.
Here are the details:
- Manual Tests (curl commands): When I send POST requests to both webhook endpoints directly from the Grafana server using
curl
, the requests are successful, and I receive valid responses for both Slack and Parny endpoints. - Grafana Logs:
- Slack:
logger=alerting.notifier.webhook t=... lvl=eror msg="Failed to send webhook" error="webhook response status 400 BAD REQUEST" webhook=slack
- Parny:
logger=alerting.notifier.webhook t=... lvl=eror msg="Failed to send webhook" error="webhook response status 500 INTERNAL SERVER ERROR" webhook=parny
- Slack:
What I have tried:
- Verified both endpoints using
curl
from the Grafana server—both are working as expected. - Checked for payload differences between Grafana and
curl
requests. - Validated that the webhook URLs are correctly configured in Grafana.
Questions:
- Why does Grafana fail to send notifications while
curl
works without any issues? - Are there specific payload structures or headers that Grafana requires for these notification channels (Slack and Parny)?
- How can I debug this further to identify why Slack returns a
400
and Parny returns a500
?
Any insights or suggestions to resolve this issue would be greatly appreciated.
Thank you!