Prometheus Anchored Query

Reusable wrapper for the knowledge-base-first PromQL pattern. Operator names the metric / question / time range. Skill calls query_observability_knowledge_base first to confirm labels + cardinality, derives the safe narrow PromQL, runs it via the Prometheus MCP, and saves the raw payload to a provenance-bearing bundle per the perf-lake-contract. Workload-agnostic. Replaces the ad-hoc "run PromQL and hope" pattern with a disciplined anchor-then-query workflow. Triggers on "prometheus query", "promql query", "anchored query", "knowledge-base query", "query the Prometheus MCP", "what's the prometheus metric for", "save prometheus payload", or any combination of "promql / prometheus / metric / query" with "anchored / knowledge-base / safe / provenance".

cfregly 8fefe25 12.0 KB Updated

File contents

cfregly/claude-gpu-perf-tune/tree/main/plugins/profile-and-optimize/skills/prometheus-anchored-query commit 8fefe25f83

Frequently asked questions

npx skillmds@latest add cfregly/prometheus-anchored-query