Skip to main content

Module config

Module config 

Source
Expand description

Configuration model and rendering for Datadog Agent configuration.

Primary focus is currently DogStatsD but this is, hopefully, easy to expand in the future.

Two variations are sampled, selected by ConfigProfile. General samples the full feral surface, including keys the Datadog Agent rejects or interprets differently from ADP, which is correct when ADP runs alone. Differential samples only keys both ADP and the Datadog Agent honor identically, over value ranges both accept, so the A/B scenario compares two targets that were actually asked to behave the same way.

Structs§

DatadogConfig
Agent-facing config. hostname, api_key, dd_url, and the socket are supplied by the environment; log_level and the DogStatsD options are sampled per branch. The static flags are appended by Self::to_yaml, not fields here.

Enums§

ConfigProfile
Which datadog.yaml variation to sample.