[TP] Exporter les métriques d'un Batch
What you will learn in this TP :
- Installer pushgateway
- Accéder à la console de pushgateway
- Envoyer les métriques d'un script dans Pushgateway
- Utilisation des librairies
Les prérequis
Vous devez disposer d'une machine avec Docker d'installé. Si vous ne disposez pas d'une machine ou d'un environnement de test, nous vous invitons à faire le TP sur la mise en place de l'environnement de test.Pushgateway
What you will learn in this section :
- Installer pushgateway
- Accéder à la console de pushgateway
Review the concept presentation video
-
Déployer le conteneur
Vous devez déployer un conteneur pushgateway pour collecter les métriques envoyés par des tâches éphémères (batch...). Retrouvez sur ce lien un exemple de fichier docker-compose qui contient la configuration pour déployer Pushgateway : Fichier.
Vos métriques vers Pushgateway
What you will learn in this section :
- Envoyer les métriques d'un script dans Pushgateway
- Utilisation des librairies
Review the concept presentation video
-
Créer le script
Nous allons créer un script Bash simple nommé non_system_user.sh qui va lister le nombre d'utilisateurs non système sur la machine et l'envoyer Pushgateway.INFORMATION : Sur Linux: - Les utilisateurs non systèmes ont des UID (User ID) supérieurs ou égaux à 1000, sauf nobody (UID 65534). - Les utilisateurs sont dans /etc/passwd
-
Instrumentation Pushgateway
Vous devez déployer un conteneur Node_exporter pour collecter l'ensemble des métriques de la machine. Il doit être ajouté dans le réseau observability. -
Vérification
Vous devez exécuter le script et vérifier que vous avez bien les données dans la console pushgateway
Course Glossary
The process of notifying teams (via email, Slack, Teams) when a specific event, threshold breach, or anomaly is detected.
The overall structural design of an IT system, defining its various components, their relationships, and the principles guiding its evolution.
An open source framework providing standards, APIs, and SDKs to collect and export observability data (traces, metrics, logs) in an agnostic way.
Recommended Articles
Understand the evolution of billing in Dynatrace: the difference between the ...
Discover why and how to configure Grafana Alloy so that it monitors itself, c...
Discover how to enable, secure, and use Grafana Alloy's built-in web interfac...
Discover the fundamental concepts of Grafana Alloy, the transition from the s...
Master Grafana Alloy's declarative syntax (River language), learn to manipula...
Learn how to configure Grafana Alloy to collect, transform, and forward metri...
Discover how to configure Grafana Alloy to read log files, journald, or netwo...
Dive into distributed trace processing. Learn how to ingest OTLP, Jaeger, or ...
Discover how to configure continuous profiling in your environments using Gra...
Learn how to manage large-scale Grafana Alloy deployments. Configure Clusteri...
Discover Grafana Assistant, the artificial intelligence integrated into Grafa...
Comparison between Grafana Alloy and Dynatrace ActiveGate. Understand the fun...