Slack Integration
Set up Slack webhook integration to receive rich, formatted Pingara alerts directly in your Slack channels with incident details and quick action links.
Slack is the most popular alert channel for DevOps teams. Pingara's Slack integration delivers rich, formatted notifications directly to your channels with all the context you need to respond quickly.
Prerequisites
Before setting up the integration, you'll need:
- A Pingara Pro account
- Admin access to your Slack workspace
- A Slack channel to receive alerts (e.g.,
#monitoring-alerts)
Setting Up the Integration
Step 1: Create a Slack App
- Go to the Slack API portal
- Click Create New App
- Choose From scratch
- Name it "Pingara Alerts" (or any name you prefer)
- Select your workspace
- Click Create App
Step 2: Enable Incoming Webhooks
- In your Slack app settings, go to Incoming Webhooks
- Toggle Activate Incoming Webhooks to On
- Click Add New Webhook to Workspace
- Select the channel (e.g.,
#monitoring-alerts) - Click Allow
- Copy the Webhook URL β it looks like:
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
Security: Treat this URL like a password. Anyone with the URL can post to your channel.
Step 3: Add the Channel in Pingara
- Go to Settings β Alert Policies β [Your Policy]
- Click Add Channel
- Select Slack
- Paste the Webhook URL
- Click Save
Step 4: Test the Integration
- Click Send Test Notification
- Check your Slack channel for the test message
- If it arrives, you're all set!
Message Format
Pingara sends richly formatted Slack messages using Block Kit for maximum readability.
Incident Created (Down Alert)
π΄ Monitor Down: api.example.com
βββββββββββββββββββββββββββββββ
Status: Investigating
URL: https://api.example.com/health
Error: HTTP 503 Service Unavailable
Region: US East (N. Virginia)
Started: Jan 15, 2024 2:32 PM UTC
[View Incident] [View Monitor]
The message includes:
- Color-coded sidebar β Red for down, green for recovery, amber for degraded
- Monitor name and URL β Quick identification
- Error details β Status code, error type, and message
- Affected region β Where the failure was detected
- Timestamp β When the incident started
- Action buttons β Direct links to the incident and monitor in Pingara
Incident Resolved (Recovery Alert)
π’ Monitor Recovered: api.example.com
βββββββββββββββββββββββββββββββ
Status: Resolved
URL: https://api.example.com/health
Duration: 12 minutes
Resolved: Jan 15, 2024 2:44 PM UTC
[View Incident] [View Monitor]
SSL Expiry Warning
β οΈ SSL Certificate Expiring: api.example.com
βββββββββββββββββββββββββββββββ
URL: https://api.example.com
Days Left: 14
Expires: Jan 29, 2024
[View Monitor]
Performance Degradation
π‘ Monitor Degraded: api.example.com
βββββββββββββββββββββββββββββββ
Status: Degraded
URL: https://api.example.com/health
Latency: 2,340ms (threshold: 500ms)
Region: EU West (Ireland)
[View Monitor]
Channel Configuration Best Practices
Separate Channels by Environment
Create dedicated channels for different environments:
| Channel | Purpose |
|---|---|
#prod-alerts | Production incidents (critical) |
#staging-alerts | Staging issues (informational) |
#ssl-expiry | Certificate warnings (low urgency) |
Configure Slack Notification Settings
For your alert channels, customize Slack's notification behavior:
- Right-click the channel β Notification Preferences
- For
#prod-alerts: Set to Every new message with sound - For
#staging-alerts: Set to Mentions only or a digest
Use Thread Replies for Updates
Pingara threads incident updates under the original alert message. This keeps your channel clean:
π΄ Monitor Down: api.example.com β Original message
βββ Status updated: Identified β Thread reply
βββ Status updated: Monitoring β Thread reply
βββ π’ Resolved (12 min) β Thread reply
Multiple Slack Workspaces
If your organization uses multiple Slack workspaces, create a separate webhook for each:
- Create a webhook in Workspace A β Add as channel in Pingara
- Create a webhook in Workspace B β Add as another channel in Pingara
Both workspaces will receive alerts for the same monitors.
Troubleshooting
Messages Not Arriving
Check the webhook URL:
- Ensure you copied the full URL including the token
- Verify the URL starts with
https://hooks.slack.com/services/
Check the channel:
- Ensure the channel still exists (wasn't deleted or archived)
- Verify the Slack app still has access to post
Check Pingara configuration:
- Ensure the Slack channel is enabled in the alert policy
- Verify the alert policy is linked to the monitor
- Check that the alert trigger is enabled (Down, Recovery, etc.)
Test manually with curl:
curl -X POST -H 'Content-type: application/json' \
--data '{"text":"Test from Pingara"}' \
YOUR_WEBHOOK_URL
If this works but Pingara notifications don't arrive, contact support.
Rate Limiting
Slack limits incoming webhooks to 1 message per second. During large-scale outages affecting many monitors simultaneously, some notifications may be slightly delayed.
Webhook URL Expired
Slack webhook URLs can be revoked if:
- The Slack app is uninstalled
- The app's permissions are revoked
- The workspace admin removes the integration
Fix: Create a new webhook and update the URL in Pingara.
Security Considerations
- Rotate webhook URLs periodically β Regenerate if you suspect the URL has been exposed
- Use private channels β Keep alert channels private to your team
- Don't share webhook URLs β Treat them as secrets
- Audit access β Periodically review who has access to alert channels
Next Steps
- Webhook Integration β Build custom integrations
- Alert Channels β Overview of all notification channels
- Setting Up Alerts β Configure alert policies for Slack