User Tools

Site Tools


wiki:grafana_rocketchat_notifications

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:grafana_rocketchat_notifications [2026/05/19 13:23] – created antisawiki:grafana_rocketchat_notifications [2026/05/19 13:59] (current) – [Grafana to rocketchat notifications] add .DashboardURL antisa
Line 10: Line 10:
  > Extra headers to Content-Type application/json  > Extra headers to Content-Type application/json
  
-then set the **Custom payload** to something RC expects e.g.+then set the **Custom payload** (click on //Edit Payload template > Enter custom payload template//to something RC expects e.g.
  
 <code javascript | download> <code javascript | download>
Line 19: Line 19:
   "attachments": [   "attachments": [
     {     {
-      "title": "some link to smth", +      "title": "Link to below dashboard", 
-      "title_link": "https://rocket.chat",+      "title_link": "{{ range .Alerts }}{{ .DashboardURL }}{{ end }}",
       "text": "Rocket.Chat, the best open source chat",       "text": "Rocket.Chat, the best open source chat",
       "image_url": "https://rocket.chat",       "image_url": "https://rocket.chat",
Line 40: Line 40:
   * https://docs.rocket.chat/docs/integrations#webhook-url-format   * https://docs.rocket.chat/docs/integrations#webhook-url-format
   * https://grafana.com/docs/grafana/latest/alerting/fundamentals/alert-rules/annotation-label/#label-types   * https://grafana.com/docs/grafana/latest/alerting/fundamentals/alert-rules/annotation-label/#label-types
 +  * https://grafana.com/docs/grafana/latest/alerting/configure-notifications/template-notifications/reference/#alert
wiki/grafana_rocketchat_notifications.1779197016.txt.gz · Last modified: by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki