Email alerts via Zapier
Last updated
🚨 New groundcover Alert 🚨🔔 Alert Title: {{alert_name}}
💼 Severity: {{severity}}
🔗 Links:
- 🧹 Issue: {{issue_url}}
- 📈 Monitor: {{monitor_url}}
- 🔕 Silence: {{silence_url}}workflow:
id: emails
description: Sends alerts to Zapier webhook (for email)
triggers:
- type: alert
name: emails
consts:
severity: keep.dictget( {{ alert.annotations }}, "_gc_severity", "info")
title: keep.dictget( {{ alert.annotations }}, "_gc_issue_header", "{{ alert.alertname }}")
issue_url: https://app.groundcover.com/monitors/issues?backendId={{ alert.labels.backend_id }}&selectedObjectId={{ alert.fingerprint }}
monitor_url: https://app.groundcover.com/monitors?backendId={{ alert.labels.backend_id }}&selectedObjectId={{ alert.labels._gc_monitor_id }}
silence_url: https://app.groundcover.com/monitors/create-silence?keep.replace(keep.join({{ consts.redacted_labels }}, "&", "matcher_"), " ", "+")
redacted_labels: keep.dict_pop({{ alert.labels }}, "_gc_monitor_id", "_gc_monitor_name", "_gc_severity", "backend_id", "grafana_folder", "_gc_issue_header")
actions:
- name: <<THE_NAME_OF_YOUR_WORFLOW>>
provider:
config: "{{ providers.<<THE_NAME_OF_YOUR_INTEGRATION>> }}"
type: webhook
with:
body:
alert_name: "{{ consts.title }}"
severity: "{{ consts.severity }}"
issue_url: "{{ consts.issue_url }}"
monitor_url: "{{ consts.monitor_url }}"
silence_url: "{{ consts.silence_url }}"