Intermediate Topic 31 of 50 DevOps & Tooling
Prometheus and Grafana
Metrics collection and dashboards.
How it works
Prometheus is a metrics system that scrapes HTTP endpoints, usually /metrics, at regular intervals and stores the samples in a time-series database. Metrics have a name and labels, and types include counters, gauges and histograms. PromQL queries compute rates, percentiles and aggregations, for example rate(http_requests_total[5m]). Alerting rules feed Alertmanager, which groups, silences and routes notifications. Grafana connects to Prometheus and other data sources to draw dashboards of panels, variables and annotations. Service discovery finds targets automatically in Kubernetes and cloud environments.
Where it is used
Teams use them to track service health, build SLO dashboards, watch capacity and spot regressions after deployments.
Common pitfall
High-cardinality labels such as user IDs explode memory and storage, rate() applied to a gauge gives nonsense and cluttered dashboards hide the signal. Keep label values bounded, show a few meaningful panels and use remote storage for long retention.
Where it fits in the course
Prometheus and Grafana is topic 31 of 50 in DevOps & Tooling, rated Intermediate. It follows Logging Pipelines. The next topic is Tracing with OpenTelemetry.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the DevOps & Tooling quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the DevOps & Tooling quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Prometheus and Grafana?
Where do people use Prometheus and Grafana?
What is the most common mistake with Prometheus and Grafana?
What should I learn before this topic?
How can I practice it?
Is Prometheus and Grafana hard to learn?
How long does it take to learn Prometheus and Grafana?
Which topics are related to Prometheus and Grafana?
What should I study after Prometheus and Grafana?
Related topics
- Logging Pipelines (DevOps & Tooling)
- Tracing with OpenTelemetry (DevOps & Tooling)
- Monitoring and Alerting (DevOps & Tooling)
- Incident Response (DevOps & Tooling)