RousselTMLEARNING

TP · Datadog: from discovery to expertise

Lab: Custom metrics with DogStatsD and a dashboard

What you will learn in this TP
  • Send DogStatsD metrics
  • Build a dashboard with variables
  • Measure cardinality

Introduction #

What you will learn in this section
  • Send DogStatsD metrics
  • Build a dashboard with variables
  • Measure cardinality

Context. The product team wants to track orders in real time alongside the technical metrics. You send business metrics while keeping the bill under control.

Prerequisites: Previous lab completed  ·  Estimated time: 40 min

Useful, well-controlled business metrics.

Hands-on #

Guided steps, with their solutions.

  1. 1. Send counters

    Why? DogStatsD aggregates on the agent side: the application sends over UDP without waiting.

    For one minute, send orders with a payment method tag.
  2. 2. Explore

    Why? The Metrics Explorer confirms reception and the tags.

    In Metrics > Explorer, graph sum:boutique.commandes{env:lab} by {moyen_paiement}.as_count().
  3. 3. Dashboard with variables

    Why? An env variable makes the dashboard reusable across all environments.

    Create a “Boutique” dashboard with a $env variable, a Query Value widget (orders in the last hour) and a Timeseries of the p95 basket amount.
  4. 4. Measure cardinality

    Why? To understand why a tag can be expensive.

    Send 500 points with a unique commande_id tag, then compare the metric's number of series in Metrics Summary.

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

My progress

  • ⏱ Estimated time : ≈ 40 min

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

💬 Recent discussions about this course

Ask a question about this lesson →See all discussions about this course

Recommended Articles

Metrics and tags in Datadog: unified tagging, DogStatsD and cardinality

Use Datadog metrics: unified tagging (env, service, version), queries and aggregations, custom me...

Advanced Datadog metrics: types, aggregations, cardinality and Metrics without Limits

Master Datadog metrics: types (count, rate, gauge, histogram, distribution), time and space aggre...

Datadog best practices: tags, costs, alerts and governance

Checklist for using Datadog effectively: unified tagging, cost control (hosts, logs, custom metri...

Datadog dashboards and notebooks: widgets, template variables and best practices

Design useful Datadog dashboards: widget types, template variables, groups, Powerpacks, formulas,...

Mastering variables in Grafana: make your dashboards dynamic

Learn how to use variables to create interactive, reusable dashboards. Discover the difference be...

Service types in Dynatrace: web, database, messaging, custom and unified services

What a service is for Dynatrace, the automatically detected service types (web requests, web serv...

Grafana cross-dashboard variables: share variables across dashboards

Create your Grafana variables once and reuse them everywhere: global or folder scope, enabling, a...

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

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

Monitors, SLOs, dashboards and Datadog as code

Create effective monitors (metrics, logs, APM, composites, anomalies), SLOs, dashboards, and mana...

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!