Using webhook to send alert to Rocket chat. Alert ...
# general
j
Using webhook to send alert to Rocket chat. Alert triggers and does post a message in Rocket, but the message is empty. Is this a known issue?
There are no errors or warnings on signoz alertmanager logs.
a
can you try creating a webook with webhook.site and register a channel to test what message is coming through?
j
Yes, here it is:
Copy code
{
  "receiver": "test-webhook\\.site",
  "status": "firing",
  "alerts": [
    {
      "status": "firing",
      "labels": {
        "alertname": "Test Alert (<http://webhook.site|webhook.site>)",
        "severity": "critical"
      },
      "annotations": {
        "description": "Test alert fired from SigNoz dashboard",
        "summary": "Test alert fired from SigNoz dashboard"
      },
      "startsAt": "0001-01-01T00:00:00Z",
      "endsAt": "0001-01-01T00:00:00Z",
      "generatorURL": "",
      "fingerprint": "95744702bc7aaf79"
    }
  ],
  "groupLabels": {
    "alertname": "Test Alert (<http://webhook.site|webhook.site>)",
    "severity": "info"
  },
  "commonLabels": {
    "alertname": "Test Alert (<http://webhook.site|webhook.site>)",
    "severity": "critical"
  },
  "commonAnnotations": {
    "description": "Test alert fired from SigNoz dashboard",
    "summary": "Test alert fired from SigNoz dashboard"
  },
  "externalURL": "<http://signoz.io>",
  "version": "4",
  "groupKey": "1",
  "truncatedAlerts": 0
}
I read that that Rocket chat would be slack webhook compatible, so I tried to change alert channel type in SigNoz to slack and as a result now alerts come successfull to Rocketchat.