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
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/DownloadsHashicorp 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/installFrom concept to expertise #
We have preconfigured a repo for the course.
Git repo
You can use the command below to clone the repo:
git clone https://github.com/RousselTM/prometheus-formationChoosing 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/REPCreating 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
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...
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...