I am using Grafana v11.3.1 which is installed on a windows server.
-
What are you trying to achieve? I am trying to create “Service now” incidents based on alerts generated on Grafana. Simply, when an alert is firing I need to create a “ServiceNow” incident based on that Grafana alert.
-
How are you trying to achieve it? I use a webhook to integrate Grafana instance with my serviceNow instance. I also configure the the ServiceNow according to below document.“https://www.servicenow.com/docs/bundle/xanadu-it-operations-management/page/product/event-management/task/grafana-events-integration.html”
-
What happened? When I try to test the webhook by sending test notification it provides an error “Failed to send test alert.: webhook response status 400 Bad Request”. I also try to send same api request using postman and ended up getting the same error. Then I identified that I need to set custom header which is “user-agent” as in the ServiceNow push connector. Then I try sending another api request after adding the above mentioned header using postman, to the ServiceNow api. Now the I got 200 response. But I am unable to add “user-agent” header to the request going from Grafana instance.
-
What did you expect to happen? Using this ServiceNow webhook in Grafana, I am expecting to create incidents based on the alerts fired on Grafana.
-
Can you copy/paste the configuration(s) that you are having problems with?
-
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were. When I try to send test notification, the UI provides “Failed to send test alert.: webhook response status 400 Bad Request” error.