What you will learn in this TP
- Install Pushgateway
- Access the Pushgateway console
- Send a script's metrics to Pushgateway
- Using the libraries
Prerequisites #
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.
Pushgateway #
What you will learn in this section
- Install Pushgateway
- Access the Pushgateway console
▶ Review the concept presentation video
Deploy the container
You must deploy a Pushgateway container to collect metrics sent by ephemeral jobs (batches, etc.). Find an example docker-compose file with the configuration to deploy Pushgateway here: File.
Sending your metrics to Pushgateway #
What you will learn in this section
- Send a script's metrics to Pushgateway
- Using the libraries
▶ Review the concept presentation video
Create the script
We will create a simple Bash script called non_system_user.sh that lists the number of non-system users on the machine and sends it to Pushgateway.INFO: On Linux: - Non-system users have a UID (User ID) of 1000 or higher, except nobody (UID 65534). - Users are listed in /etc/passwd
Pushgateway instrumentation
You must deploy a Node_exporter container to collect all of the machine's metrics. It must be added to the observability network.
Verification
Run the script and check that the data shows up correctly in the Pushgateway console
Difficulty level : ●●●●○ (4/5)
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
License consumption types
Understand the evolution of billing in Dynatrace: the difference between the old licensing model ...
Grafana Alloy: The importance of Self-Monitoring
Discover why and how to configure Grafana Alloy so that it monitors itself, collecting its own lo...
Grafana Alloy: Understanding and exploiting the User Interface (UI)
Discover how to enable, secure, and use Grafana Alloy's built-in web interface to visualize your ...
Grafana Alloy: Introduction and Architecture
Discover the fundamental concepts of Grafana Alloy, the transition from the static Agent to Alloy...
Grafana Alloy: Syntax and Configuration (Alloy Language: River)
As part of a Grafana training or observability training, master the declarative syntax of Grafana...
Grafana Alloy: Metrics Collection (Prometheus & Ecosystem)
Learn how to configure Grafana Alloy to collect, transform, and forward metrics using the Prometh...
Grafana Alloy: Log Management with Loki
Discover how to configure Grafana Alloy to read log files, journald, or network streams, process ...
Grafana Alloy: Trace Management with Tempo
Dive into distributed trace processing. Learn how to ingest OTLP, Jaeger, or Zipkin traces with G...
Grafana Alloy: Continuous Profiling with Pyroscope
Discover how to configure continuous profiling in your environments using Grafana Alloy and Pyros...
Grafana Alloy: Advanced Deployment and Clustering
Learn how to manage large-scale Grafana Alloy deployments. Configure Clustering mode for high ava...
Grafana Assistant: AI at the service of observability
Discover Grafana Assistant, the artificial intelligence integrated into Grafana Cloud. Learn how ...
Grafana Alloy vs OpenTelemetry Collector: Which One Should You Choose?
A detailed comparison between Grafana Alloy and the OpenTelemetry Collector. Discover the strengt...
Grafana Alloy vs Dynatrace ActiveGate: Which to choose?
Comparison between Grafana Alloy and Dynatrace ActiveGate. Understand the fundamental differences...