Commit 8bac1db
chore(datadog_metrics sink): switch series v2 and sketches to zstd compression (vectordotdev#24956)
* chore(datadog_metrics sink): switch series v2 endpoint to zstd compression
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* chore(regression): switch statsd_to_datadog_metrics to ingress_throughput
The egress_throughput goal measures compressed bytes received by the
blackhole. Switching v2 series from zlib to zstd produces smaller
compressed payloads (better compression ratio), which registers as a
false regression in egress bytes/sec. ingress_throughput measures how
fast Vector consumes statsd data from the generator, which is
compression-agnostic and reflects actual pipeline performance.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(datadog_metrics sink): prevent division-by-zero in proptest with zero limits
Start proptest ranges at 1 instead of 0 for uncompressed_limit and
compressed_limit. The old validate_payload_size_limits rejected zero
limits, but with_payload_limits is now infallible, so finish() can
panic on division-by-zero when computing recommended_splits.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* chore(datadog_metrics sink): switch sketches endpoint to zstd compression
Sketches endpoint now uses zstd instead of zlib, matching Series v2.
Only Series v1 remains on zlib.
Validated against real Datadog API: 36/36 correctness checks passed,
all 18 metrics match between v1 and v2.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(datadog_metrics sink): correct changelog to reflect sketches use zstd
The changelog incorrectly stated that Sketches continue to use zlib,
but the code routes Sketches to zstd compression.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor(datadog_metrics sink): move compression constants to vector-common
Move zlib and zstd compression-bound constants from inline locals in
DatadogMetricsCompression::max_compressed_size to
lib/vector-common/src/constants.rs with descriptive names and doc
comments linking to their specifications.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor(datadog_metrics sink): move inline use statements to module top
Move use statements from inside test helper function bodies to the top
of the test module, as is conventional in Rust.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* cargo fmt
* fix(datadog_metrics sink): update integration test decompression for zstd
The decompress_payload helper in integration_tests.rs hardcoded zlib
decompression, but Series v2 now uses zstd. Auto-detect the compression
format via is_zstd so tests work for both zlib and zstd payloads.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Pavlos Rontidis <pavlos.rontidis@gmail.com>1 parent 0122cf6 commit 8bac1db
8 files changed
Lines changed: 629 additions & 277 deletions
File tree
- changelog.d
- lib/vector-common/src
- regression/cases/statsd_to_datadog_metrics
- src/sinks/datadog/metrics
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | 90 | | |
96 | 91 | | |
97 | 92 | | |
| |||
112 | 107 | | |
113 | 108 | | |
114 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
115 | 136 | | |
116 | 137 | | |
117 | 138 | | |
| |||
270 | 291 | | |
271 | 292 | | |
272 | 293 | | |
273 | | - | |
| 294 | + | |
274 | 295 | | |
275 | 296 | | |
276 | 297 | | |
| |||
0 commit comments