-
Notifications
You must be signed in to change notification settings - Fork 2.3k
feat(datadog metrics sink): V3 encoder based on v0.57.0 #26086
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
Draft
StephenWakely
wants to merge
18
commits into
v0.57
Choose a base branch
from
v3-encoder-on-v0.57.0
base: v0.57
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 7 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
5932505
feat(datadog metrics sink): port V3 columnar protobuf series protocol…
StephenWakely 696c786
enhancement(datadog metrics sink)!: enable V3 shadow dual-write by de…
StephenWakely 724755e
chore(datadog metrics v3): fix clippy lints from ported v3 encoder code
StephenWakely eb9b97e
fix(datadog metrics sink): never dual-write sketches
StephenWakely e4f0045
fix(datadog metrics sink): resolve missing timestamps once per flush
StephenWakely 7865072
fix(datadog metrics sink): satisfy CI event/changelog checks for V3 s…
StephenWakely 95bfd36
Use https for git dependency
StephenWakely 6e67d54
fix(datadog metrics sink): disable configuring sketches_api_version: v3
StephenWakely adaa7b6
Update license
StephenWakely 43c66de
Drop shadow finalizer
StephenWakely 6bb81a2
Dont split v3 payloads into empty chunks
StephenWakely af58ad6
Only enable shadow for non custom endpoints
StephenWakely 63539a4
Keep the V3 beta shadow endpoint out of primary configuration
StephenWakely 28fbc4c
Resolve device resources field
StephenWakely d702abb
Update licenses
StephenWakely f350abc
Shadow every 1000
StephenWakely 74c5422
Fix host resolving
StephenWakely 6f47c74
rate limit request error
StephenWakely File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| Adds a new encoder to the Datadog metrics sink to encode metrics with v3 of | ||
| the payload protocol. An additional option `dual_write` will make Vector send | ||
| duplicate series payloads to the given endpoint encoded with the configured | ||
| protocol. This allows the Datadog backend to validate that the metrics sent via | ||
| both protocols specify the exact same metrics. Only series metrics are | ||
| dual-written; sketches are never shadowed. | ||
|
|
||
| authors: stephenwakely |
14 changes: 14 additions & 0 deletions
14
changelog.d/datadog_metrics_v3_dual_write_default.breaking.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # `datadog_metrics` sink now dual-writes a V3 shadow payload by default | ||
|
|
||
| The `datadog_metrics` sink's `dual_write` V3 shadow option is now enabled by default (with | ||
| `shadow_every: 1000`, sampling 1 in every 1000 legacy series flushes). This means Vector now sends | ||
| an additional, sampled V3-encoded payload to Datadog's shadow intake endpoint alongside the normal | ||
| legacy payload, without any configuration required. | ||
|
|
||
| Only series metrics are dual-written. Sketches (distributions and histograms) are never shadowed, | ||
| because the V3 sketches intake endpoints do not exist. | ||
|
|
||
| If you don't want this additional traffic, set `dual_write.enabled: false` on your `datadog_metrics` | ||
| sink configuration. | ||
|
|
||
| authors: stephenwakely |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| The `datadog_metrics` sink now resolves the "no timestamp" fallback once per flush instead of once | ||
| per metric per encoder. | ||
|
|
||
| Metrics from sources that don't set a timestamp (such as `statsd`) had their timestamp filled in | ||
| with `Utc::now()` independently by the V2 and the V3 shadow encoder. Because the two payloads are | ||
| encoded one after the other, any flush whose encoding straddled a second boundary produced | ||
| different timestamps in each payload, which made the intake's V2/V3 comparison report large | ||
| numbers of series as present on only one side. It also meant a single flush's points could be | ||
| split across two seconds within the V2 payload on its own. | ||
|
|
||
| authors: stephenwakely |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.