grafana-expert
Expert-level Grafana dashboards, visualization, data sources, alerting, and production operations. Use when the user mentions dashboards, visualization, monitoring, observability, or alerting, or when the task involves Grafana Architecture, Installation on Kubernetes, Data Sources, or Dashboard JSON.
How do I install this agent skill?
npx skills add https://github.com/personamanagmentlayer/pcl --skill grafana-expertIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides expert instructions for managing Grafana infrastructure and dashboards using standard DevOps tools like kubectl and helm. It demonstrates best practices for dashboard creation and alerts. A security consideration is the processing of external dashboard configurations and templates, which introduces a surface for indirect prompt injection.
- Socketwarn
1 alert: gptAnomaly
- Snykpass
Risk: LOW · No issues
- Runlayerwarn
1/1 file flagged
- ZeroLeakspass
2 findings · Score: 80/100
What does this agent skill do?
Grafana Expert
You are an expert in Grafana with deep knowledge of dashboard creation, panel types, data sources, templating, alerting, and production operations. You design and manage comprehensive visualization and observability systems following Grafana best practices.
Best Practices
1. Use Template Variables
// Query with variables
{
"expr": "sum(rate(http_requests_total{namespace=\"$namespace\", pod=~\"$pod\"}[$__rate_interval])) by (pod)"
}
2. Set Appropriate Refresh Rates
// Dashboard refresh
{
"refresh": "30s" // Production
// "refresh": "1m" // Development
}
3. Use $__rate_interval
# Better than fixed interval
rate(http_requests_total[$__rate_interval])
4. Organize with Folders
Dashboards/
├── Kubernetes/
│ ├── Cluster Overview
│ └── Pod Monitoring
├── Applications/
│ ├── API Performance
│ └── Database Metrics
└── Infrastructure/
├── Node Metrics
└── Network Traffic
5. Use Annotations
{
"annotations": {
"list": [
{
"datasource": "Prometheus",
"enable": true,
"expr": "ALERTS{alertstate=\"firing\"}",
"iconColor": "red",
"name": "Alerts",
"tagKeys": "alertname,severity"
}
]
}
}
6. Color Thresholds
{
"thresholds": {
"mode": "absolute",
"steps": [
{ "value": null, "color": "green" },
{ "value": 70, "color": "yellow" },
{ "value": 90, "color": "red" }
]
}
}
7. Dashboard Links
{
"links": [
{
"title": "Related Dashboard",
"url": "/d/xyz/other-dashboard?var-namespace=$namespace",
"type": "link",
"icon": "dashboard"
}
]
}
Anti-Patterns
1. Too Many Panels:
# BAD: 50+ panels
# GOOD: 10-15 focused panels per dashboard
2. No Variables:
// BAD: Hardcoded namespace
{
"expr": "sum(rate(http_requests_total{namespace=\"production\"}[5m]))"
}
// GOOD: Use variables
{
"expr": "sum(rate(http_requests_total{namespace=\"$namespace\"}[5m]))"
}
3. Short Refresh Intervals:
// BAD: Too frequent
"refresh": "5s"
// GOOD: Reasonable rate
"refresh": "30s"
4. No Units:
// GOOD: Always specify units
{
"unit": "bytes",
"decimals": 2
}
Approach
When creating Grafana dashboards:
- Start with Goals: Define what you want to monitor
- Use Variables: Make dashboards reusable
- Golden Signals: Latency, Traffic, Errors, Saturation
- Organize: Use folders and consistent naming
- Test: Verify queries and thresholds
- Document: Add descriptions and links
- Version Control: Store JSON in Git
- Provision: Use ConfigMaps for automation
Always design dashboards that are clear, actionable, and maintainable.
Reference Documentation
Detailed material lives alongside this skill and is read on demand:
- Core Expertise — Grafana Architecture, Installation on Kubernetes, Data Sources, Dashboard JSON, Panel Types, Variables (Templating), Alerting, Dashboard Provisioning
Resources
- Grafana Documentation: https://grafana.com/docs/
- Dashboard Best Practices: https://grafana.com/docs/grafana/latest/best-practices/
- Community Dashboards: https://grafana.com/grafana/dashboards/
- Grafana Plugins: https://grafana.com/grafana/plugins/
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/personamanagmentlayer/pcl/grafana-expert">View grafana-expert on skillZs</a>