The correction is integrated into the TP (See the green boxes)
What you will learn in this TP
- Install cAdvisor
- Access cAdvisor's console and metrics
- Install Node exporter
- Access Node exporter's console and metrics
All steps and instructions are shown. Recommended for this lab: semi-guided
Prerequisites #
Context. Prometheus only sees what is exposed to it. You deploy cAdvisor and Node exporter to measure containers and the machine.
Prerequisites: a machine with Docker and Docker Compose · Estimated time: 30 min
You must have a machine with Docker installed. If you don't have a machine or test environment, please complete the 'setting up the test environment' lab first.cAdvisor #
What you will learn in this section
- Install cAdvisor
- Access cAdvisor's console and metrics
▶ Review the concept presentation video
Install and configure cAdvisor
Deploy the container
You must deploy a cAdvisor container to collect all the container metrics present on the machine. It must be added to the observability network. Find an example docker-compose file with the configuration to deploy cAdvisor here: File.See the correction
Create a file with the configuration, e.g. docker-compose-cadvisor.yml, and put this configuration in it
Check that it's working
Verify that the exporter is working correctly and responds on its listening port.
See the correction
Just go to:
http://localhost:8080Check the metrics
Verify that the metrics are coming through correctly
See the correction
Just go to:
http://localhost:8080/metrics
Node exporter #
What you will learn in this section
- Install Node exporter
- Access Node exporter's console and metrics
▶ Review the concept presentation video
Deploy the container
You must deploy a Node_exporter container to collect all of the machine's metrics. It must be added to the observability network. Find an example docker-compose file with the configuration to deploy cAdvisor here: File.See the correction
Create a file with the configuration, e.g. docker-compose-nodeexporter.yml, and put this configuration in it
Check that it's working
Verify that the exporter is working correctly and responds on its listening port.
See the correction
Just go to:
http://localhost:9100Check the metrics
Verify that the metrics are coming through correctly
See the correction
Just go to:
http://localhost:9100/metrics
Validate your work
Check that each goal above is reached and that you get the result described in the introduction.
Difficulty level : ●●●○○ (3/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
Website monitoring: availability, HTTPS monitoring, certificates and performance
Set up website monitoring: availability and HTTPS checks, certificate expiry, response time, Core...
OpenTelemetry Collector: exporters (sending telemetry to backends)
Configure OpenTelemetry Collector exporters: OTLP gRPC/HTTP, Prometheus, prometheusremotewrite, L...
Deploying Thanos on Kubernetes (kube-prometheus-stack, Helm and Operator)
Install Thanos on Kubernetes: sidecar via kube-prometheus-stack, objstore secret, Bitnami/kube-th...
Deploying and operating Mimir on Kubernetes
Install Mimir with the mimir-distributed Helm chart, size the components, monitor Mimir with the ...
Prometheus on Kubernetes and the Prometheus web interface
Deploy Prometheus on Kubernetes with kube-prometheus-stack (Prometheus Operator, ServiceMonitor, ...
Prometheus recording rules: speeding up your queries and dashboards
Understand and master Prometheus recording rules: evaluation, naming convention, pitfalls (ratios...
Prometheus: visualizing your metrics (UI, Grafana and dashboards)
Visualize Prometheus data: the web interface, PromQL graphs, connecting to Grafana, RED and USE d...
Prometheus best practices: metrics, cardinality, rules and operations
Prometheus best practices: metric naming, labels and cardinality, scrape intervals, recording rul...
OpenTelemetry architecture: understanding the 3 levels
A deep dive into the OpenTelemetry architecture. Learn how data flows from the application to the...