[TP] Projet 2 : Manipulation de l'API Dynatrace


Pour ce TP, nous allons voir comment manipuler les données Dans Dynatrace via son API.

What you will learn in this TP :
  • Compatibilité des plugins / datasources
  • Récupérer les données au format CSV
  • Récupérer les données au format JSON

Introduction


What you will learn in this section :
  • Compatibilité des plugins / datasources

Ce projet a pour objectif de vous apprendre à manipuler les données Dans Dynatrace via son API.
INFORMATION : Certains plugins, datasources necessitent des versions précises de Grafana. C'est le cas de la datasource Dynatrace qui nécessite de disposer de 'Grafana Cloud' ou 'Grafana Enterprise'.
Bien évidemment cela reste valable pour interroger d'autres solutions via API.

Datasource Infinity


What you will learn in this section :
  • Récupérer les données au format CSV
  • Récupérer les données au format JSON

  1. La méthode HTTP
    En fonction de l'appel que vous souhaitez faire, Dans la documentationde l'API, on vous indiquera la méthode à utiliser.
    INFORMATION : Par défaut Infinity va envoyer vos requêtes avec la méthode 'GET'. Vous devez trouver l'option pour la modifier ?
  2. L'authentification
  3. L'entête accept
    Grafana va se baser sur 'curl' pour requêter vos URLs pour le plugin infinity. En fonction du format que vous souhaitez obtenir il faut donc le demander à l'API via une entête.
    INFORMATION : Je vous invite à vous renseigner sur les différentes valeurs mais Dans notre cas la clé(key) c'est 'accept' et comme valeur(value):
    • JSON : application/json
    • CSV : text/csv
    Comment configurer ce paramètre Dans Grafana pour le plugin Infinity?

Difficulty level: (2/5)

Course Glossary

Alerting

The process of notifying teams (via email, Slack, Teams) when a specific event, threshold breach, or anomaly is detected.

HTTP Code 200 (OK)

An HTTP status code indicating that the client's request was successfully processed by the server.

HTTP Code 403 (Forbidden)

An HTTP status code indicating that the server understood the request but refuses to authorize it, usually due to a lack of permissions.

HTTP Code 404 (Not Found)

An HTTP status code indicating that the requested resource could not be found on the server.

Recommended Articles

License consumption types

Understand the evolution of billing in Dynatrace: the difference between the ...

Grafana Alloy: The importance of Self-Monitoring

Discover why and how to configure Grafana Alloy so that it monitors itself, c...

Grafana Alloy: Understanding and exploiting the User Interface (UI)

Discover how to enable, secure, and use Grafana Alloy's built-in web interfac...

Grafana Alloy: Introduction and Architecture

Discover the fundamental concepts of Grafana Alloy, the transition from the s...

Grafana Alloy: Syntax and Configuration (Alloy Language)

Master Grafana Alloy's declarative syntax (River language), learn to manipula...

Grafana Alloy: Metrics Collection (Prometheus & Ecosystem)

Learn how to configure Grafana Alloy to collect, transform, and forward metri...

Grafana Alloy: Log Management with Loki

Discover how to configure Grafana Alloy to read log files, journald, or netwo...

Grafana Alloy: Trace Management with Tempo

Dive into distributed trace processing. Learn how to ingest OTLP, Jaeger, or ...

Grafana Alloy: Continuous Profiling with Pyroscope

Discover how to configure continuous profiling in your environments using Gra...

Grafana Alloy: Advanced Deployment and Clustering

Learn how to manage large-scale Grafana Alloy deployments. Configure Clusteri...

Grafana Assistant: AI at the service of observability

Discover Grafana Assistant, the artificial intelligence integrated into Grafa...

Grafana Alloy vs Dynatrace ActiveGate: Which one to choose?

Comparison between Grafana Alloy and Dynatrace ActiveGate. Understand the fun...