Get alerts
when things break
Slasha watches your servers, apps, domains, cron jobs and deploys. It tells you in Slack, Discord, Telegram or email, and again when it’s fixed.
2Threshold
3 Send to
Custom message template (optional)
Preview
How it works
How to set up alerts
Admins set them up under Alerts in the dashboard.
01
Add a channel
Slack or Discord webhook, Telegram bot, or SMTP. Press Test to check it.
Alerts → Channels → New channel02
Create a rule
Pick what to check, set a threshold and choose the channels.
App Memory % · storefront · ≥ 85%03
Slasha checks every minute
When a rule triggers, you get a message. When it recovers, you get another.
Triggered → Still failing → ResolvedRule types
Eleven types of rules
Thresholds for CPU, memory, disk and load. Checks for URLs and domains. Failures for cron jobs and deploys.
- Works on any node, including the main server
- Health checks call any URL you choose
- TLS expiry warns you days ahead
Servers
- Node CPU %
- Node Memory %
- Node Storage %
- Node Load Average
Apps
- App CPU %
- App Memory %
- App Health Check
Domains
- Domain TLS Expiry
- Domain DNS Misconfigured
Jobs & deploys
- Cron Failed
- Deployment Failed
Incidents
A timeline for every incident
Each incident shows when it started, the measurements and every message sent. The resolved message says how long it lasted.
Timeline
Triggered
Memory at 87.2% (threshold 85%)
Notified #ops on Slack
and on-call by email
Re-notifies every 15 min while it stays open
Triggered: storefront memory above 85% (87.2%)
Webhooks & scripts
Call a webhook or run a script
Each rule can also call a webhook and run a shell command on the Slasha server. Page your on-call tool, open a ticket or restart something.
- Webhook gets a JSON
POSTwith the message intext - Shell command receives five
SLASHA_ALERT_*variables - Runs on trigger, while still failing, and on resolve
curl -fsS https://ops.acme.dev/page \ -d "rule=$SLASHA_ALERT_RULE_NAME" \ -d "status=$SLASHA_ALERT_STATUS" \ -d "detail=$SLASHA_ALERT_DETAIL"
Environment
- SLASHA_ALERT_RULE_NAME
- storefront memory above 85%
- SLASHA_ALERT_KIND
- app_memory
- SLASHA_ALERT_STATUS
- triggered
- SLASHA_ALERT_VALUE
- 87.4
- SLASHA_ALERT_DETAIL
- App Memory at 87.4%, threshold 85.0%
Message templates
Write your own message
The default message has the rule name, status, detail and duration. Want something shorter? Give the rule a template.
- Four variables, anywhere in the text
- One template for all the rule’s channels
- Leave it empty for the default
[{{notification_status}}] {{detail}}
- {{value}}
- the measurement
- {{detail}}
- what happened
- {{notification_status}}
- triggered, renotified or resolved
- {{alert_kind}}
- the rule type
Sends
[triggered] App Memory at 87.4%, threshold 85.0%
More details
Checked every 60s
Each enabled rule is checked once a minute.
Cooldown
Reminds you while it’s still failing. 15 minutes by default.
Resolved messages
Get a message when it’s fixed, with how long it lasted.
Slack & Discord
Paste an incoming webhook URL.
Telegram
Use your own bot token and a chat ID.
Email over SMTP
Send through your own mail server or provider.
Test button
Send a sample message to check a channel.
Admin-only
Only admins can see and change alerts.
Questions about alerts
Have another question? Ask on GitHub.
Who can set up alerts?
How often will I be notified while something is broken?
Can I send alerts to PagerDuty, Opsgenie or my own tool?
POST with a text field. The shell command runs on the Slasha server with the alert details in SLASHA_ALERT_* environment variables, so you can curl any API in the format it expects.How quickly does an alert fire?
Can I test a channel first?
Other features
All featuresSet up alerts on your own server
Free and open source. Your first app can be live in ten minutes.