Write Prometheus alerting rules and configure Alertmanager routing for home lab notifications.
Ships in home-lab-developer-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Write, test, and manage Prometheus alerting rules and Alertmanager routing configuration on a Raspberry Pi home lab. Covers rule syntax, alert grouping, receiver setup, inhibition rules, and integration with ntfy for push notifications.
homelab_sshTest)Optional:
homelab_sshTest.homelab_serviceHealth for Prometheus and
Alertmanager containers.homelab_prometheusQueryfor duration and labelshomelab_prometheusQuery on ALERTSalertmanager.yml to add receivers and routeshomelab_alertList to check current alert stateshomelab_prometheusQuery with the alert expression to verify it evaluates truehomelab_serviceLogsService endpoints:
http://pi:9090 -- rules UI at /-/ruleshttp://pi:9093 -- alerts UI and APIhttp://pi:8080 -- push notification serverConfig file locations:
/opt/homelab/docker/monitoring/
prometheus/prometheus.yml # Global config with rule_files reference
prometheus/rules/alerts.yml # Alerting rule definitions
alertmanager/alertmanager.yml # Receiver and route configuration
Alert rule syntax:
groups:
- name: homelab
rules:
- alert: HighCPUUsage
expr: 100 - (avg by(instance) (irate(node_cpu_seconds_total{mode="idle"}[5m])) * 100) > 80
for: 5m
labels:
severity: warning
annotations:
summary: "High CPU usage on {{ $labels.instance }}"
description: "CPU usage is above 80% for 5 minutes (current: {{ $value | printf \"%.1f\" }}%)"
Alertmanager ntfy receiver:
receivers:
- name: ntfy
webhook_configs:
- url: http://ntfy:8080/homelab-alerts
send_resolved: true
User: "Set up an alert for when disk usage goes above 85%"
Assistant actions:
homelab_prometheusQuery with disk usage expressionResponse:
Add this rule to
/opt/homelab/docker/monitoring/prometheus/rules/alerts.yml:- alert: DiskSpaceLow expr: (1 - node_filesystem_avail_bytes{mountpoint="/"} / node_filesystem_size_bytes{mountpoint="/"}) * 100 > 85 for: 10m labels: severity: warning annotations: summary: "Disk usage above 85% on {{ $labels.instance }}"After adding, reload Prometheus config. The alert will fire after disk stays above 85% for 10 minutes.
User: "Silence the CPU alerts while I update the monitoring stack."
Assistant actions:
homelab_alertSilences with state: "active" to avoid stacking a duplicate silencehomelab_alertSilence with action: "create",
matchers: [{ name: "alertname", value: "HighCPU" }], duration: "1h",
a comment naming the maintenance, and confirm: false first to show the previewconfirm: true; when the work is done,
expire it early with action: "expire" and the returned IDUser: "Why am I not getting notifications for my alerts?"
Assistant actions:
homelab_alertList to see current alertshomelab_serviceLogs for Alertmanager| Tool | Purpose |
|---|---|
homelab_sshTest | Validate connectivity before operations |
homelab_prometheusQuery | Verify metrics exist and test alert expressions |
homelab_alertList | Check current Alertmanager alert states |
homelab_alertSilences | List silences and their matchers, window and author |
homelab_alertSilence | Create a silence (matchers, duration, comment) or expire one by ID; requires confirm: true |
homelab_serviceHealth | Check Prometheus and Alertmanager health |
homelab_serviceLogs | Debug alert delivery issues |
homelab_serviceRestart | Restart Prometheus/Alertmanager after config changes |
for duration too short -- a for: 0s alert fires on every evaluation and
can flood notifications. Use at least for: 5m for most conditions.POST /-/reload for config
changes. A full restart causes a brief metrics gap. Prefer reload when possible.send_resolved: true sends a follow-up when the alert
clears. This is helpful but doubles notification volume.avg by, sum by) to reduce.promtool check rules alerts.yml to validate syntax before
reloading. Bad YAML will prevent Prometheus from starting.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
22 skills in this plugin
/ansible-workflowsWrite and run Ansible playbooks for multi-node home lab provisioning and configuration management./backup-recoveryConfigure and manage restic backups including scheduling, verification, and disaster recovery./certificate-managementLet's Encrypt, self-signed certs, renewal automation, NPM cert integration/disaster-recoveryFull Pi disaster recovery -- backup verification, restore workflows, SD card imaging, and migration checklists/dns-managementManage AdGuard Home DNS filtering, blocklists, local DNS records, and query log analysis./docker-compose-stacksManage multi-file Docker Compose deployments on a Raspberry Pi home lab server./home-lab-developer-tools:alerting-rulesfrom home-lab-developer-tools
home-lab-developer-tools@nicu-ai-tools is listed by mascatunike/nicu-ai-tools — review the source before installing
npx claudepluginhub mascatunike/nicu-ai-tools --plugin home-lab-developer-tools