Mimir prometheus troubleshoot
Skill timbuchinger/loadout/skills/mimir-prometheus-troubleshoot
Help craft efficient Mimir/Prometheus queries, troubleshoot metric issues, avoid high-cardinality problems, and recommend best practices for aggregation, recording rules, and performance.From its SKILL.md
npx -y skills add timbuchinger/loadout --skill mimir-prometheus-troubleshootAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.7 KB, as published. Nobody here has run it
Mimir + Prometheus Troubleshooting & Query-Builder Skill
What this Skill does
Use this skill whenever a user needs help with:
- PromQL queries
- Metric debugging
- Missing data / gaps
- Cardinality optimization
- Aggregation strategy
- Recording rules
Best Practices
Low-cardinality label selection
Use labels such as:
job,instance,service,cluster,namespace,env
Avoid:
user_id,session_id,request_id, raw UUIDs
Always narrow time ranges
Prefer "5m", "15m", "1h".
Use correct aggregations
rate()for counterssum by (...)for groupinghistogram_quantile()for latency
Suggest recording rules if query is heavy
Example Queries
| User Request | PromQL |
|---|---|
| "Error rate for payments in prod" | sum by (job) (rate(http_requests_total{job="payments", env="prod", status=~"5.."}[5m])) |
| "Latency p95 for frontend" | histogram_quantile(0.95, sum by (le) (rate(http_request_duration_seconds_bucket{app="frontend"}[5m]))) |
When to Suggest Loki or Tempo
For:
- request IDs
- root-cause event-level debugging
- full request paths
→ Recommend Tempo + Loki correlations.
Limitations
- Skill does not run PromQL