skills sourced live from GitHub · all skills listed are free · each skill is provided under its author's license.
home / DevOps / Prometheus Grafana Skill by @BagelHole
The skill is the devops/observability/prometheus-grafana folder inside that repository. Copy it into the folder your agent loads skills from; check your agent's documentation for where that is.
Set up metrics collection and visualization with Prometheus and Grafana.
Sets up metrics collection and visualisation with Prometheus and Grafana: Docker and Kubernetes deployments, scrape configuration, PromQL queries, dashboards and alerting.
The original SKILL.md is organised into these sections:
Written and maintained by @BagelHole. It is published under the MIT license, which allows reuse with attribution. See the author profile. SkillDirectory does not claim authorship: this page adds our own review and links back to the original, and the skill's text belongs to its author.
# Prometheus & Grafana
Collect metrics and visualize system performance with the Prometheus-Grafana stack.
## When to Use This Skill
Use this skill when:
- Setting up metrics collection infrastructure
- Creating monitoring dashboards
- Writing PromQL queries for analysis
- Configuring alerting rules
- Monitoring Kubernetes clusters
## Prerequisites
- Docker or Kubernetes for deployment
- Network access to monitored targets
- Basic understanding of metrics concepts
## Prometheus Setup
### Docker Deployment
```yaml
# docker-compose.yml
version: '3.8'
services:
prometheus:
image: prom/prometheus:v2.48.0
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- ./rules:/etc/prometheus/rules
- prometheus-data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=15d'
grafana:
image: grafana/grafana:10.2.0
…
Excerpt only, quoted from the author's repository. Open the repository for the complete file.