-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metrics don't ship to Datadog after 0.34.0 upgrade #19110
Comments
Ok, we have figured out what is likely going on. This release updated Vector to use a new endpoint in Datadog which unfortunately accepts a much smaller payload size. Vector is optimised for the larger size. The result is now Datadog is rejecting the batches being sent in. You have two options:
Sorry for the inconvenience. |
Thanks for looking into this promptly. I have a couple of questions:
|
Just a small update: we are digging into this now to come up with a correct fix. Thanks for the report!
The patch will likely change the batch limits for the v2 endpoints
The v1 endpoints were in-use up until v0.34.0 so the flag just reverts the behavior back to what you were using prior to the upgrade. |
Ref: #19110 Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
Okay. Looking forward to the patch. |
These are the steps to repro this issue:
Generating the input fileThe metrics must be unique so as not to be aggregated. for i in {1..6666000}
do
echo "foo:1|c|#tag:$i" >> events.txt
done Vector config[sources.in]
type = "statsd"
address = "0.0.0.0:9000"
mode = "tcp"
path = "/tmp/tmp.socket"
[sinks.dd]
inputs = [ "in" ]
type = "datadog_metrics"
default_api_key="${TEST_DATADOG_API_KEY}"
batch.max_events = 8000
batch.timeout_secs = 999999
buffer.type = "disk"
buffer.max_size = 4294967296
buffer.when_full = "drop_newest" Start Vector(Debug log level needs to be set in order to confirm the 413 HTTP status code) vector -c ./vector.toml -v Sending the metricssocat -dd OPEN:events.txt TCP:localhost:9000 |
…#19122) * chore(releasing): Add known issue for Datadog Metrics sink in v0.34.0 Ref: #19110 Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> * Update website/cue/reference/releases/0.34.0.cue Co-authored-by: Brett Blue <84536271+brett0000FF@users.noreply.github.com> --------- Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> Co-authored-by: Brett Blue <84536271+brett0000FF@users.noreply.github.com>
…#19122) * chore(releasing): Add known issue for Datadog Metrics sink in v0.34.0 Ref: #19110 Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> * Update website/cue/reference/releases/0.34.0.cue Co-authored-by: Brett Blue <84536271+brett0000FF@users.noreply.github.com> --------- Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> Co-authored-by: Brett Blue <84536271+brett0000FF@users.noreply.github.com>
👋 hi @a26nine , have an update on this- the fix/patch will roll back to using the v1 endpoint. We have remaining work to do to sort out some strange performance we saw with the v2 endpoint payload limits. We will plan to get that ironed out and well tested for v0.35.0. |
…vectordotdev#19122) * chore(releasing): Add known issue for Datadog Metrics sink in v0.34.0 Ref: vectordotdev#19110 Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> * Update website/cue/reference/releases/0.34.0.cue Co-authored-by: Brett Blue <84536271+brett0000FF@users.noreply.github.com> --------- Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> Co-authored-by: Brett Blue <84536271+brett0000FF@users.noreply.github.com>
…vectordotdev#19122) * chore(releasing): Add known issue for Datadog Metrics sink in v0.34.0 Ref: vectordotdev#19110 Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> * Update website/cue/reference/releases/0.34.0.cue Co-authored-by: Brett Blue <84536271+brett0000FF@users.noreply.github.com> --------- Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> Co-authored-by: Brett Blue <84536271+brett0000FF@users.noreply.github.com>
fix yaml test config and also format the code fix wrong usage log.get, now all tests are passing Ran cargo vdev fmt Fix reference in to_metrics_metadata in log_to_metric.rs Convert type errors to single error with type. Added test for multiple metrics but it is failing. Additional attempts to get the multiple_metadata_metrics working. fix(playground): fix playground vrl version and link (vectordotdev#19119) * fix(playground): fix playground vrl version and link * Ran cargo vdev fmt * remove redundant line * replace clone() with as_ref() whenever possible * Ran cargo vdev fmt chore(website): Fix commenting step on workflow (vectordotdev#19134) * fix: extra env vars into comment step * fix: add sleep to allow branch to connect * fix: update where branch name and sanitized branch name are used Remove multiple metrics test. chore(ci): Bump bufbuild/buf-setup-action from 1.27.2 to 1.28.0 (vectordotdev#19137) Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.27.2 to 1.28.0. - [Release notes](https://github.com/bufbuild/buf-setup-action/releases) - [Commits](bufbuild/buf-setup-action@v1.27.2...v1.28.0) --- updated-dependencies: - dependency-name: bufbuild/buf-setup-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps): Bump the clap group with 1 update (vectordotdev#19127) Bumps the clap group with 1 update: [clap](https://github.com/clap-rs/clap). - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](clap-rs/clap@v4.4.7...v4.4.8) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-patch dependency-group: clap ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(releasing): Add known issue for Datadog Metrics sink in v0.34.0 (vectordotdev#19122) * chore(releasing): Add known issue for Datadog Metrics sink in v0.34.0 Ref: vectordotdev#19110 Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> * Update website/cue/reference/releases/0.34.0.cue Co-authored-by: Brett Blue <84536271+brett0000FF@users.noreply.github.com> --------- Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> Co-authored-by: Brett Blue <84536271+brett0000FF@users.noreply.github.com> chore(deps): Bump proptest from 1.3.1 to 1.4.0 (vectordotdev#19131) Bumps [proptest](https://github.com/proptest-rs/proptest) from 1.3.1 to 1.4.0. - [Release notes](https://github.com/proptest-rs/proptest/releases) - [Changelog](https://github.com/proptest-rs/proptest/blob/master/CHANGELOG.md) - [Commits](proptest-rs/proptest@v1.3.1...v1.4.0) --- updated-dependencies: - dependency-name: proptest dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps): Bump env_logger from 0.10.0 to 0.10.1 (vectordotdev#19130) Bumps [env_logger](https://github.com/rust-cli/env_logger) from 0.10.0 to 0.10.1. - [Release notes](https://github.com/rust-cli/env_logger/releases) - [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md) - [Commits](rust-cli/env_logger@v0.10.0...v0.10.1) --- updated-dependencies: - dependency-name: env_logger dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(docs): Add alpha to traces and beta to metrics in descriptions (vectordotdev#19139) add alpha to traces and beta to metrics in descriptions Update README.md (vectordotdev#19142) chore(deps): Bump hdrhistogram from 7.5.2 to 7.5.3 (vectordotdev#19129) Bumps [hdrhistogram](https://github.com/HdrHistogram/HdrHistogram_rust) from 7.5.2 to 7.5.3. - [Release notes](https://github.com/HdrHistogram/HdrHistogram_rust/releases) - [Changelog](https://github.com/HdrHistogram/HdrHistogram_rust/blob/main/CHANGELOG.md) - [Commits](HdrHistogram/HdrHistogram_rust@v7.5.2...v7.5.3) --- updated-dependencies: - dependency-name: hdrhistogram dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> enhancement(file sink, aws_s3 sink, gcp_cloud_storage): configurable filename timezone (vectordotdev#18506) * add TzOffset as File Sink configuration * integrate TzOffset into File Sink * apply tz offset to all log event in render_timestamp. * added TzOffset tests * adding chrono-tz for parsing timezones * rename tz_offset to path_tz. timezones are safer than offsets * update tz_offset references to path_tz * cargo fmt * remove unnecessary commented out code. fmt and generate-component-docs * clippy suggestions and remove TryFrom<&str> - serde handles converting to String * rename Template config option `path_tz` to `timezone` * move `path_tz.rs` to `src/config` preparing for applying the same to `aws_s3` sink for filename timezone * update doc configuration description for path_tz * fix wrong method name * AWS and GCS filename timezone support * remove custom tz config * use VRL's timezone config * pass around SinkContext * use TzOffset to pass down to request builders. VRL's TimeZone can't be hash derived * make key_prefix timezone aware and use Option `or` syntax * move tz to offset conversion codes to sink util * remove empty line * update timezone docs in vector-config * get timezone and convert to offset in one go in FileSink * just pass the sinkconfig directly * vector_common to vector_lib * configurable_component is in vector_lib now * lookup to vector_lib * fix aws s3 integration test. pass the context to build_processor in tests * formatting * add sinkcontext to FileSink in file tests * key_prefix is expected to be a template. no need for into Update documentation Updated documentation to include example enhancement(networking, sinks): add full jitter to retry backoff policy (vectordotdev#19106) * enhancement(networking, sinks): add full jitter to retry backoff policy * fmt * fix tests * add test * fix * force ci fix(file source, kubernetes_logs source, file sink): make file internal metric tag opt-in (vectordotdev#19145) * fix(file source, kubernetes_logs source, file sink): make file internal metric tag opt-in * update cue * fix tests fix(datadog_metrics sink): evaluate series v1 env var at runtime (vectordotdev#19148) fix(datadog_metrics sink): evaluate v1 env var at runtime chore(website): WEB-4247 | Update references from s3 to setup.vector.dev (vectordotdev#19149) feat: update references from s3 to setup.vector.dev fix(ARC, networking): improve request settings (vectordotdev#19101) * fix(ARC, networking): improve request settings * fix spelling * change defaults * refactor * self-review * clippy * update default overrides * fmt nit * add upgrade guide entry Update src/transforms/log_to_metric.rs Co-authored-by: Pavlos Rontidis <pavlos.rontidis@gmail.com> Tweak and generate docs Tweak and generate docs Update website/cue/reference/components/transforms/base/log_to_metric.cue Co-authored-by: Heston Hoffman <hestonhoffman@gmail.com> Update website/cue/reference/components/transforms/base/log_to_metric.cue Co-authored-by: Heston Hoffman <hestonhoffman@gmail.com> Update website/cue/reference/components/transforms/base/log_to_metric.cue Co-authored-by: Heston Hoffman <hestonhoffman@gmail.com> Update src/transforms/log_to_metric.rs Co-authored-by: Heston Hoffman <hestonhoffman@gmail.com> Update src/transforms/log_to_metric.rs Co-authored-by: Heston Hoffman <hestonhoffman@gmail.com> Update src/transforms/log_to_metric.rs Co-authored-by: Heston Hoffman <hestonhoffman@gmail.com> Fix styling in example for all_metrics. Minor tweaks to formatting for documentation Fix minor issues with formatting that was causing tests to fail.
Thanks, @neuronull! Awaiting the patch release. |
@jszwedko @neuronull |
Hi @a26nine, would you mind opening a new issue with your config and include debug logs? I just re-tested 0.34.1 again with the payload limits test and am still seeing it go through to Datadog (and on the v1 endpoint). |
I noticed that the uri in
|
The configuration and everything else is same as shared in the OP. It's just the difference of versions. I toggled between versions multiple times to confirm the issue. |
I think I see what you are referencing, @a26nine, but that seems like a trivial difference:
The only other difference between the two is the size in bytes, which could easily be explained by different underlying events going through. |
That is intended/expected behavior that has been unchanged for a few releases. https://vector.dev/docs/reference/configuration/sinks/datadog_metrics/#default_api_key |
…vectordotdev#19122) * chore(releasing): Add known issue for Datadog Metrics sink in v0.34.0 Ref: vectordotdev#19110 Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> * Update website/cue/reference/releases/0.34.0.cue Co-authored-by: Brett Blue <84536271+brett0000FF@users.noreply.github.com> --------- Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> Co-authored-by: Brett Blue <84536271+brett0000FF@users.noreply.github.com>
A note for the community
Problem
I upgraded from
0.33.1
to0.34.0
, and the metrics stopped on Datadog.I see this in the changelog:
Config file loads fine. Healtcheck is passed. However, metrics don't appear on Datadog —they do appear on other sink destinations.
Configuration
Version
0.34.0
Debug Output
No response
Example Data
No response
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: