prometheus-configuration — скилл для Claude Code: установка
Настраивает Prometheus для сбора метрик, хранения и мониторинга инфраструктуры и приложений. Пригодится для scrape-конфигураций и алертов.
/plugin marketplace add wshobson/agents
/plugin install observability-monitoring@claude-code-workflowsЧто делает prometheus-configuration
Скилл помогает настроить Prometheus для сбора метрик, мониторинга инфраструктуры и приложений. Он разбирает scrape-конфигурации, recording rules, alert rules и service discovery, а также подсказывает подходы к именованию метрик, retention и relabeling.
Внутри есть подробные паттерны в references/details.md, рекомендации по высокой доступности, федерации и долгосрочному хранению через Thanos или Cortex. Для диагностики предусмотрены запросы к http://localhost:9090/api/v1/targets, http://localhost:9090/api/v1/status/config и API-запрос с query=up.
Для подробных паттернов нужен файл references/details.md, когда базовой навигации недостаточно.
Какие задачи решает
- настроить сбор метрик через Prometheus
- проверить scrape-конфигурацию и targets
- создать recording rules для дорогих запросов
- спроектировать правила алертов
- организовать service discovery
Примеры запросов агенту
- Настрой Prometheus для мониторинга инфраструктуры и приложений.
- Проверь scrape targets и конфигурацию Prometheus через API.
- Создай recording rules и alert rules для этого проекта.
Как установить prometheus-configuration
1Через маркетплейс плагинов
/plugin marketplace add wshobson/agents/plugin install observability-monitoring@claude-code-workflowsКоманда ставит плагин observability-monitoring целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill prometheus-configuration -a claude-code3Вручную: положить файлы
~/.claude/skills/prometheus-configuration/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/prometheus-configuration/
1Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill prometheus-configuration -a codex2Вручную: положить файлы
.agents/skills/prometheus-configuration/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill prometheus-configuration -a cursor2Вручную: положить файлы
.cursor/skills/prometheus-configuration/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install wshobson/agents prometheus-configuration2Вручную: положить файлы
.github/skills/prometheus-configuration/SKILL.mdКомандой платформы
gemini skills install https://github.com/wshobson/agents --path plugins/observability-monitoring/skills/prometheus-configurationВручную: положить файлы
.devin/skills/prometheus-configuration/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о prometheus-configuration
Как установить prometheus-configuration в Claude Code?
Добавьте маркетплейс командой /plugin marketplace add wshobson/agents, затем установите скилл командой /plugin install observability-monitoring@claude-code-workflows.
Что делает prometheus-configuration?
Скилл помогает настроить сбор метрик, scrape-конфигурации, recording rules, alert rules и service discovery в Prometheus. Также он описывает мониторинг самого Prometheus и варианты хранения данных.
Какие платформы поддерживает prometheus-configuration?
Скилл доступен для Claude Code, Codex и Cursor.
Исходный текст
SKILL.md · MIT
--- name: prometheus-configuration description: Set up Prometheus for comprehensive metric collection, storage, and monitoring of infrastructure and applications. Use when implementing metrics collection, setting up monitoring infrastructure, or configuring alerting systems. --- # Prometheus Configuration Complete guide to Prometheus setup, metric collection, scrape configuration, and recording rules. ## Purpose Configure Prometheus for comprehensive metric collection, alerting, and monitoring of infrastructure and applications. ## When to Use - Set up Prometheus monitoring - Configure metric scraping - Create recording rules - Design alert rules - Implement service discovery ## Detailed patterns and worked examples Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient. ## Best Practices 1. **Use consistent naming** for metrics (prefix_name_unit) 2. **Set appropriate scrape intervals** (15-60s typical) 3. **Use recording rules** for expensive queries 4. **Implement high availability** (multiple Prometheus instances) 5. **Configure retention** based on storage capacity 6. **Use relabeling** for metric cleanup 7. **Monitor Prometheus itself** 8. **Implement federation** for large deployments 9. **Use Thanos/Cortex** for long-term storage 10. **Document custom metrics** ## Troubleshooting **Check scrape targets:** ```bash curl http://localhost:9090/api/v1/targets ``` **Check configuration:** ```bash curl http://localhost:9090/api/v1/status/config ``` **Test query:** ```bash curl 'http://localhost:9090/api/v1/query?query=up' ``` ## Related Skills - `grafana-dashboards` - For visualization - `slo-implementation` - For SLO monitoring - `distributed-tracing` - For request tracing
© Seth Hobson · MIT · wshobson/agents