Error 400 using webhook alert notification


I’m trying to post some messages to our Cisco Webex Team using the webhooks notification channel. When I’m sending a test (or a proper notification) I’m getting an error in the log stating that body and markdown can’t both be empty in the same request

t=2019-04-30T12:49:20+0000 lvl=dbug msg="Webhook failed" logger=notifications statuscode="400 Bad Request" body="{\"message\":\"Both text and markdown cannot be empty in the same request.\",\"errors\":[{\"description\":\"Both text and markdown cannot be empty in the same request.\"}],\"trackingId\":\"ROUTER_5CC8444F-88BA-01BB-0057-D52711BA0057\"}"
t=2019-04-30T12:49:20+0000 lvl=eror msg="Failed to send webhook" logger=alerting.notifier.webhook error="Webhook response status 400 Bad Request" webhook="Webex Teams"
t=2019-04-30T12:49:20+0000 lvl=eror msg="failed to send notification" logger=alerting.notifier uid=7JJsxQzZz error="Webhook response status 400 Bad Request"

Is there some location where I can define what is being send in a notification?

Currently this is not possible.

We got a PR for a webex webhook that we did not merge:

There is also a feature request for sending a custom json body but the Grafana team is not planning to implement it in the near future and no-one from the community has taken it on either:

So your options are:

  • fork Grafana and use the PR code
  • create a wrapper around your webex endpoint (a simple Node app or similar) that translates the webhook json into the format webex expects.
  • wait until backend plugin support for alert notifiers is implemented. Probably will be done in the next 2-3 months.

Is there any update on this issue?

I see that above PR still open, Is there any update or work around available for this issue.?