Send groundcover Alerts to Email via Zapier
This guide shows how to route groundcover alerts to email using Zapier. Since groundcover supports webhook-based alerting, and Zapier can receive webhooks and send emails, you can easily set up this workflow without writing code.
Prerequisites
A groundcover account with access to the Workflows tab.
A Zapier account (free plan is sufficient).
An email address where you want to receive alerts.
Step 1: Create a Webhook Integration in groundcover
Go to Settings → Integrations.
Click Create Integration.
Choose Webhook as the type.
Enter a name like
zapier_email_integration
.Paste your Zapier Catch Hook URL (you’ll get this in Step 2 below).
Save the integration.
Step 2: Create a Zapier Webhook-to-Email Workflow
Create a Webhook Trigger
Go to Zapier.
Click "Create Zap".
Set Trigger:
App:
Webhooks by Zapier
Event:
Catch Hook
Copy the Webhook URL (e.g.
https://hooks.zapier.com/hooks/catch/...
) – you'll use this in groundcover.
Configure the Email Step
Set Action:
App:
Email by Zapier
Event:
Send Outbound Email
Configure the email:
To: your email address
Subject:
🚨 New groundcover Alert 🚨
Body:
🔔 Alert Title: {{alert_name}} 💼 Severity: {{severity}} 🔗 Links: - 🧹 Issue: {{issue_url}} - 📈 Monitor: {{monitor_url}} - 🔕 Silence: {{silence_url}}
Step 3: Create a Workflow in groundcover
Go to the Workflows section in your groundcover.
Create a Notification Workflow with the integration we created in step 1.
Edit the worflow YAML and use the following structure:
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 }}"
Step 4: Test the Flow
Trigger a test alert in groundcover.
Check Zapier to ensure the webhook was received.
Confirm the email arrives with the right content.
Last updated