Observe and report on Prometheus installation state, active alerts, AlertManager configuration, and rule evaluation status. Trigger with /prometheus-status
I analyze running Prometheus installations to provide comprehensive reports on current alert states, configuration health, and system status without making any modifications.
/prometheus-statusRuns the full autonomous validation workflow:
Usage: Just type /prometheus-status and I will execute the validation script and report results.
Script Verification: Before executing, verify the script integrity:
sha256sum .github/skills/prometheus-observer/scripts/validate.sh
# Expected: check current hash after creation
Execute validation:
bash .github/skills/prometheus-observer/scripts/validate.sh
/prometheus-status (slash command)This skill assumes port-forwards are active or can be started:
kubectl port-forward -n monitoring svc/kube-prometheus-stack-prometheus 9090:9090 &kubectl port-forward -n monitoring svc/kube-prometheus-stack-alertmanager 9093:9093 &If port-forwards are not running, the validation script will detect this and provide the commands to start them.
/api/v1/alerts) for active/pending alerts/-/healthy)/api/v1/rules)# Query active alerts
curl -s http://prometheus:9090/api/v1/alerts | jq '.data.alerts[] | {alert: .labels.alertname, state: .state, severity: .labels.severity}'
# Check AlertManager connectivity
curl -s http://alertmanager:9093/-/healthy
# Rule evaluation metrics
curl -s http://prometheus:9090/api/v1/query?query=prometheus_rule_evaluation_failures_total | jq '.data.result[]'
# Scrape health by job
curl -s http://prometheus:9090/api/v1/query?query=up | jq '.data.result[] | {job: .metric.job, instance: .metric.instance, status: .value[1]}'
| Endpoint | Purpose |
|----------|---------|
| /api/v1/alerts | Active and pending alerts |
| /api/v1/rules | Rule evaluation status |
| /api/v1/targets | Scrape target health |
| /api/v1/config | Current configuration |
| /-/healthy | Health status |
# Example route structure to validate
route:
group_by: ['alertname']
group_wait: 10s
group_interval: 10s
repeat_interval: 1h
receiver: 'web.hook'
Want faster, more comprehensive analysis? These MCP servers provide deeper integration than manual API queries:
The Flux Operator MCP Server (flux-operator) provides Kubernetes resource access that complements Prometheus observation:
get_kubernetes_resources to query PrometheusRule and ServiceMonitor objectsSetup: See flux-operator skill Step 10 for MCP server configuration.
For direct Prometheus API integration, consider:
These provide tool-based access to the same APIs this skill uses manually.
If you're using Grafana for visualization:
This skill provides the observational foundation for:
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer