executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself โ your human partner chose inline execution, or no subagent tool is available
PrometheusPrometheus monitoring patterns, cardinality management, alerting best practices, and PromQL traps.
Independent GitHub snapshot ยท Automated classification ยท Original documentation governs
name: Prometheus slug: prom version: 1.0.0 description: Prometheus monitoring patterns, cardinality management, alerting best practices, and PromQL traps. homepage: https://clawic.com/skills/prom metadata: category: infrastructure skills:
user_id as label kills Prometheusprometheus_tsdb_head_series metric โ above 1M series needs attentionlabeldrop in scrape configrate() requires range selector at least 4x scrape interval โ rate(metric[1m]) with 30s scrape misses datarate() is per-second, increase() is total over range โ don't confuse themrate() handles this, raw delta doesn'tirate() uses only last two samples โ too spiky for alerting, use rate() for alertsfor clause prevents flapping: for: 5m means condition must hold 5 minutes before firingfor clause = fires immediately on first match = noisyrunbook_url label โ on-call needs to know what to do, not just that something's wrongpromtool check rules โ syntax errors discovered at 3am are badand is intersection by labels, not boolean AND โ results must have matching label setsor fills in missing series, doesn't do boolean OR on values{} without metric name is expensive โ scans all metricsoffset goes back in time: metric offset 1h is value from 1 hour agohttp_requests > 100 drops series below 100, doesn't return booleanhonor_labels: true trusts source labels โ use only when source is authoritative (e.g., Pushgateway)scrape_timeout must be less than scrape_interval โ otherwise overlapping scrapesinsecure_skip_verify) should be temporary, never permanentcurl -X DELETE http://pushgateway/metrics/job/myjobrecord: job:request_duration_seconds:rate5mlevel:metric:operations โ helps identify what rules produce--storage.tsdb.wal-compression and monitor disk spacesnake_case, prefix with domain: http_requests_total, node_cpu_seconds_totalle label is reserved for histogram buckets โ don't use for other purposes