🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

Prometheus

by @wpank

Prometheus monitoring — scrape configuration, service discovery, recording rules, alert rules, and production deployment for infrastructure and application metrics.

Versionv1.0.0
When to Use
TriggerAction
|----------|---------|
| Set up metrics collection | New service needs Prometheus scraping |
| Configure service discovery | K8s pods, file-based, or static targets |
| Create recording rules | Pre-compute expensive PromQL queries |
| Design alert rules | SLO-based alerts for availability and latency |
| Production deployment | HA setup with retention and storage planning |
| Troubleshoot scraping | Targets down, metrics missing, relabeling issues |
📋 Tips & Best Practices

| Practice | Detail | |----------|--------| | Naming: prefix_name_unit | Snake_case, _total for counters, _seconds/_bytes for units | | Scrape intervals 15–60s | Shorter wastes resources and storage | | Recording rules for dashboards | Pre-compute anything queried repeatedly | | Monitor Prometheus itself | prometheus_tsdb_*, scrape_duration_seconds | | HA deployment | 2+ instances scraping same targets | | Retention planning | Match --storage.tsdb.retention.time to disk capacity | | Federation for scale | Global Prometheus aggregates from regional instances | | Long-term storage | Thanos or Cortex for >30d retention |

🔒 Constraints

# Validate config syntax
promtool check config prometheus.yml

Validate rule files

promtool check rules /etc/prometheus/rules/*.yml

Test a query

promtool query instant http://localhost:9090 'up'

Reload config without restart

curl -X POST http://localhost:9090/-/reload

View on ClawHub
TERMINAL
clawhub install prometheus-devops

🧪 Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

🔍 Can't find the right skill?

Search 60,000+ AI agent skills — free, no login needed.

Search Skills →