What you will learn in this TP
- Provision a data source
- Apply USE and RED
- Make a dashboard dynamic
From query to dashboard #
What you will learn in this section
- Provision a data source
- Apply USE and RED
- Make a dashboard dynamic
Context. Metrics only help if the team sees them. You connect Grafana to Prometheus and build two panels following the reference methods: USE for resources, RED for services.
Prerequisites : Alertmanager lab · Estimated time : 35 min
Data source, queries, variable.1. Provision the data source
Why? Provisioning makes configuration reproducible: no clicks to redo after a reinstall.
Add Grafana to the Compose file and declare Prometheus through provisioning.2. USE panel: CPU utilisation
Why? USE (utilisation, saturation, errors) tells whether a resource is the bottleneck.
Display the CPU percentage used per instance.3. RED panel: error rate
Why? RED (rate, errors, duration) reflects what the user feels about a service.
Compute the percentage of 5xx requests (use Prometheus's own metrics:prometheus_http_requests_total).4. Variable and import
Why? Variables turn a dashboard into a tool reusable for every machine; importing avoids reinventing the wheel.
Add an$instancevariable then import the community dashboard "Node Exporter Full" (ID 1860).
Difficulty level : ●●○○○ (2/5)
My progress
Sign in to track your progress and take notes. Sign in
💬 Recent discussions about this course
- Prometheus consomme 12 Go de RAM : comment trouver les métriques coupables ?✓ solved · 2 reply(ies)
- PromQL : quelle différence entre rate() et irate() ?✓ solved · 1 reply(ies)
Ask a question about this lesson →See all discussions about this course
Course Glossary
Alerting
The process of notifying teams (via email, Slack, Teams) when a specific event, threshold breach, or anomaly is detected.
Architecture
The overall structural design of an IT system, defining its various components, their relationships, and the principles guiding its evolution.
OpenTelemetry
An open source framework providing standards, APIs, and SDKs to collect and export observability data (traces, metrics, logs) in an agnostic way.
Recommended Articles
Prometheus: visualizing your metrics (UI, Grafana and dashboards)
Visualize Prometheus data: the web interface, PromQL graphs, connecting to Grafana, RED and USE d...
Grafana vs Kibana: which visualization tool to choose?
Discover the fundamental differences between Grafana, the king of multi-source metrics, and Kiban...
Data sources in Grafana: connect and unify your data
Learn how to extend Grafana's capabilities with data sources. Discover essential plugins such as ...
PromQL: an introduction to the Prometheus query language
Learn PromQL, the Prometheus query language: selectors, rate, sum by, histograms and first querie...
Prometheus on Kubernetes and the Prometheus web interface
Deploy Prometheus on Kubernetes with kube-prometheus-stack (Prometheus Operator, ServiceMonitor, ...
Zero-code instrumentation with Grafana Beyla (OpenTelemetry eBPF Instrumentation)
Get RED metrics and HTTP/gRPC traces from any application without changing it: Grafana Beyla and ...
Prometheus recording rules: speeding up your queries and dashboards
Understand and master Prometheus recording rules: evaluation, naming convention, pitfalls (ratios...
Prometheus best practices: metrics, cardinality, rules and operations
Prometheus best practices: metric naming, labels and cardinality, scrape intervals, recording rul...
Metric types in Prometheus
Discover in detail the four metric types supported by Prometheus (Counter, Gauge, Histogram, Summ...