RousselTMLEARNING

TP · Prometheus: From Discovery to Expertise

Deploying exporters with correction

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
Mode :

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

  1. 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 . Once the file is created, you can run it with the following command:
    docker compose -f docker-compose-cadvisor.yml up -d 
    . If the 'observability' network doesn't exist, you can create it with
    docker network create observability 
  2. 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:8080
  3. Check 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
  1. 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 . Once the file is created, you can run it with the following command:
    docker compose -f docker-compose-nodeexporter.yml up -d 
  2. 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:9100
  3. Check 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

  • ⏱ Estimated time : ≈ 30 min

Sign in to track your progress and take notes. Sign in

⭐ Rate this lesson

5.0 initial rating from the teaching team

Sign in to rate this lesson →

💬 Recent discussions about this course

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...

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!