RousselTMLEARNING

TP · Prometheus: From Discovery to Expertise

Setting up the test environment

What you will learn in this TP
  • Install VirtualBox and Vagrant
  • Clone the course repository
  • Create and start a test environment
  • Connect to the virtual machines
Mode :

All steps and instructions are shown. Recommended for this lab: guided

Oracle VM VirtualBox #

Context. The whole Prometheus course relies on identical test machines for every learner. You prepare, once and for all, this reproducible environment described in the course Git repository.

Prerequisites: VirtualBox and Vagrant installed, Git, 8 GB of free memory  ·  Estimated time: 20 min

We will use VirtualBox to deploy our test VMs. Some labs will be done with Docker, so if you already have a Docker engine you can use it instead of deploying a new VM.

Install VirtualBox by following the procedure that matches your system:

https://www.virtualbox.org/wiki/Downloads

Hashicorp Vagrant #

We will use Vagrant to automatically deploy test environments. To learn more about Vagrant, you can follow our dedicated course.

Install Vagrant by following the procedure that matches your system:

https://developer.hashicorp.com/vagrant/install

From concept to expertise #

We have preconfigured a repo for the course.

  1. Git repo

    You can use the command below to clone the repo:

    git clone https://github.com/RousselTM/prometheus-formation
  2. Choosing the environment

    The test environment configurations are located in the tp folder. Inside, there are several subfolders, each corresponding to a test environment: plain VM, VM with Docker, VM with application... Each lab will specify which one to use:

    cd prometheus-formation/tp/REP
  3. Creating the environment

    Once inside the folder matching the desired environment, you can start creating the environment on VirtualBox with the following Vagrant command

    vagrant up

Validate your work

Check that each goal above is reached and that you get the result described in the introduction.

Difficulty level : ●○○○○ (1/5)

My progress

  • ⏱ Estimated time : ≈ 20 min

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

⭐ Rate this lesson

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

Prometheus recording rules: speeding up your queries and dashboards

Understand and master Prometheus recording rules: evaluation, naming convention, pitfalls (ratios...

Prometheus: alerting with Alertmanager (rules, routing, silences)

Set up Prometheus alerting: alert rules, Alertmanager, routing, grouping, inhibition, silences, S...

Time-based vs event-based SLO: understanding, computing and choosing (with the Qonto example)

Differences between time-based SLOs (time slices, uptime) and event-based SLOs (good events over ...

Prometheus best practices: metrics, cardinality, rules and operations

Prometheus best practices: metric naming, labels and cardinality, scrape intervals, recording rul...

k6 and Alloy: sending load test results over OpenTelemetry

Send k6 metrics to Alloy with the OpenTelemetry output, convert them for Mimir and compare them w...

Observing a k6 test: Prometheus, Grafana and correlation with the system under test

Send k6 results to Prometheus (remote write) or via OpenTelemetry, visualize them in Grafana and ...

Prometheus on Kubernetes and the Prometheus web interface

Deploy Prometheus on Kubernetes with kube-prometheus-stack (Prometheus Operator, ServiceMonitor, ...

Prometheus: visualizing your metrics (UI, Grafana and dashboards)

Visualize Prometheus data: the web interface, PromQL graphs, connecting to Grafana, RED and USE d...

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!