vectordotdev / vector

A high-performance observability data pipeline.
https://vector.dev
Mozilla Public License 2.0
17.51k stars 1.53k forks source link

[`datadog_agent` source] Integration test for metrics #13363

Open prognant opened 2 years ago

prognant commented 2 years ago

Logs & traces have some degree of integration testing https://github.com/vectordotdev/vector/blob/master/src/sources/datadog/agent/integration_tests.rs

Metrics differ in the extend that datadog agents have a 1:1 behaviour for logs/traces in & out (traces get sampled but only above a certain threshold). But metrics are always handled through the whole aggregation layer, and the same testing logic cannot be reliably used (this was attempted in #13028). A longer test is probably required, also standalone dogstatsd may be used, and for better agent behaviour it would be preferable to start the source before the agent.

neuronull commented 1 year ago

Just noting a specific test case for v2 metrics was mentioned in #13028 , and would be good to add as part of this effort.

emit a dogstatsd metrics to an agent around here an assert we got it right out of the datadog_agent source (agent config / startup is done here for this test).

(The links are broken but I'm sure we can figure it out)