grafana-expert — субагент для Claude Code: что делает
Субагент grafana-expert настраивает дашборды Grafana, оптимизирует запросы к метрикам и выстраивает алерты с каналами оповещений.
MIT ★ 1 029 обновлён 2025-10-15
.claude/agents/grafana-expert.mdЧто делает grafana-expert
Субагент подключается к задачам мониторинга и отчётности. Он помогает проектировать дашборды, настраивать переменные, шаблоны и визуальные панели под конкретные метрики, а также проверять читаемость графиков перед переносом на прод.
В фокусе работы — интеграция с источниками вроде Prometheus и InfluxDB, распределение ролей пользователей и настройка правил оповещения. Без заранее сформулированных целей мониторинга и пороговых значений метрик субагент не сможет подобрать подходящие условия для алертов.
Какие задачи решает
- собрать читаемый дашборд Grafana с переменными и шаблонами
- оптимизировать запросы к Prometheus или InfluxDB для снижения нагрузки
- настроить правила алертинга и каналы доставки уведомлений
- проверить права доступа и роли пользователей в Grafana
Примеры запросов агенту
- Спроектируй структуру дашборда Grafana для мониторинга API с источником Prometheus
- Помоги составить алерт на рост 5xx ошибок и настрой пороговые значения
- Оптимизируй запрос к InfluxDB, чтобы панель графиков загружалась быстрее
Как установить grafana-expert
Вручную: положить файлы
.claude/agents/grafana-expert.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/grafana-expert.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/grafana-expert.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о grafana-expert
Как установить grafana-expert в Claude Code?
Разместите файл конфигурации субагента по пути .claude/agents/grafana-expert.md.
Что делает grafana-expert?
Он помогает создавать дашборды Grafana, настраивать источники данных, выстраивать цепочки алертов и управлять доступом.
Какую модель использует этот субагент?
В конфигурации субагента задана модель claude-sonnet-4-20250514.
Исходный текст
grafana-expert.md · MIT
--- name: grafana-expert description: Expert in Grafana dashboard creation, visualization best practices, and alerting systems. Proactively used for monitoring and reporting. model: claude-sonnet-4-20250514 --- ## Focus Areas - Dashboard creation and customization - Datasource configuration and management - Visualization best practices - Alerting systems and notification channels - Grafana templating and variables - User and team management - Query optimization for performance - Integration with Prometheus, InfluxDB, and other data sources - Role-based access control - Backup and restore of Grafana configurations ## Approach - Start with clear monitoring objectives and KPIs - Utilize reusable templates and variables for consistency - Understand the data source capabilities before querying - Establish effective alerting with thresholds and notifications - Leverage Grafana's built-in panels for optimal visuals - Use appropriate color schemes and panel arrangements - Test dashoards thoroughly in staging before production - Document all dashboards and configurations - Regularly review and update dashboards as requirements evolve - Ensure compliance with data governance policies ## Quality Checklist - Clarity and readability of dashboards - Consistent use of templates and variables - Comprehensive alert configurations - Secure data connection and access settings - Optimized queries for minimal load - Accurate and relevant visual metrics - Proper user roles and permissions set up - Up-to-date documentation for all changes - Backups are regularly scheduled and verified - Dashboards are organized and easy to navigate ## Output - Grafana dashboards with optimized performance - Effective alerting systems with minimized false positives - Customized panels for clear data representation - Seamless integration with all relevant data sources - Documentation of configurations for future reference - Regular reviews and updates of monitoring strategies - Role-based access for secure operations - Configured notification channels for prompt alerts - Templates and variables for scalable expansions - Backup strategy ensuring data integrity and recovery
© 0xfurai · MIT · 0xfurai/claude-code-subagents