Skip to content

Add Datadog metrics listener - #67

Merged
Meenakshi2000 merged 2 commits into
mainfrom
TWYX-Metrices_to_datadog-minimal
Aug 5, 2026
Merged

Meenakshi2000 merged 2 commits into
mainfrom
TWYX-Metrices_to_datadog-minimal

Conversation

@Meenakshi2000

Copy link
Copy Markdown
Collaborator

Summary

This PR adds optional Datadog metrics and tracing support to Locust Grasshopper.

The implementation:

  • Adds a Datadog listener that can publish Locust metrics to Datadog.
  • Supports OpenTelemetry tracing for Locust requests and custom checks.
  • Keeps Datadog functionality optional so existing users are unaffected unless the required configuration is provided.
  • Maintains backwards compatibility with existing InfluxDB and other metric backends.

Changes

  • Add Datadog metrics listener.
  • Add OpenTelemetry tracing support.
  • Add helper APIs for emitting custom metrics from downstream projects.
  • Normalize check names and metric tags for Datadog.
  • Update documentation with Datadog configuration and usage examples.

Backward Compatibility

No existing functionality is changed by default.

If Datadog is not configured:

  • Existing Locust execution is unchanged.
  • Existing metric backends continue to work.
  • Existing users do not need to make any configuration changes.

Validation

Validated the following scenarios:

  • Existing Locust execution without Datadog configuration behaves exactly as before.
  • Datadog metrics are emitted when Datadog configuration is provided.
  • OpenTelemetry traces are generated for supported requests and checks.
  • Existing metric backends continue to function correctly alongside the Datadog integration.

Related

This PR is consumed by Shield in:

  • TWYX-806 – Send metrics and traces to Datadog

@Meenakshi2000
Meenakshi2000 marked this pull request as draft July 29, 2026 15:14
@Meenakshi2000
Meenakshi2000 marked this pull request as ready for review July 29, 2026 17:30
@Meenakshi2000 Meenakshi2000 self-assigned this Jul 30, 2026
@Meenakshi2000
Meenakshi2000 merged commit 525ae24 into main Aug 5, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants