Use Case
Post messages to a Slack channel as part of your Unpage agents!Prerequisites
Before creating this agent, you’ll need:- Unpage installed on your system
- A Slack webhook URL for your target channel
- Optionally: Other plugins configured (Datadog, AWS, etc.) for enrichment
Creating a Slack Notification Agent
After installing Unpage, create a new agent:$EDITOR. Here’s an example agent configuration:
Configure the Slack Plugin
Make sure your Slack plugin is configured with the webhook URL (slack webhook documentation). Run:~/.unpage/profiles/default/config.yaml:
Testing Your Agent
Test with a Sample Alert
Create a test alert payload in JSON format:test_alert.json) and run:
Test with Live Alerts
For testing with actual monitoring alerts, you can:-
Use an existing PagerDuty incident:
-
Set up a webhook endpoint:
Then configure your monitoring tool to send webhooks to the provided URL.
Example Output
When an alert comes in, your agent will post a message to Slack like:Advanced: Multiple Channels
You can configure multiple Slack channels for different alert types:Integrating with Other Monitoring Tools
This pattern works with any monitoring tool that can send webhooks or has a plugin:- Datadog: Configure Datadog plugin and webhook
- Grafana: Send Grafana webhook to Unpage
- CloudWatch: Use AWS plugin + CloudWatch alarms
- Custom scripts: Any JSON payload sent to the webhook endpoint
Production Deployment
For production use, deploy Unpage as a service that continuously listens for webhooks. See our Deployment Guide for details on:- Running Unpage in Docker
- Setting up with Kubernetes
- Configuring CI/CD with GitHub Actions
- Monitoring and logging best practices

