Repository navigation
feat(datadog_agent): support v3 series metrics intake #26264
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
Open
arfa79
wants to merge
21
commits into
vectordotdev:master
Choose a base branch
from
arfa79:feat/datadog-agent-v3-series
base: master
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.
Open
Changes from 7 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
5330fba
feat(datadog_agent): support v3 series metrics intake
arfa79 8be2d90
fix(datadog_agent): address v3 series review feedback
arfa79 584d5bc
fix(datadog_agent): harden v3 series decoding
arfa79 e2463c4
fix(datadog_agent): bound v3 payload expansion
arfa79 42d4e86
fix(datadog_agent): tighten v3 expansion bounds
arfa79 068c239
fix(datadog_agent): cap v3 decoded allocation
arfa79 4000346
fix(datadog_agent): address remaining v3 review feedback
arfa79 6fa6c2d
fix(datadog_agent): bound v3 predecode allocations
arfa79 8402a3b
Merge branch 'master' into feat/datadog-agent-v3-series
arfa79 dddaf83
fix(datadog_agent): bound valid v3 strings before cloning
arfa79 502697b
fix(datadog_agent): preserve protobuf compatibility
arfa79 9b2c36c
Merge remote-tracking branch 'origin/master' into feat/datadog-agent-…
arfa79 e865f79
Merge remote-tracking branch 'origin/master' into feat/datadog-agent-…
arfa79 f042346
test(datadog): add v3 agent matrix entry
arfa79 1416f06
Merge branch 'master' into feat/datadog-agent-v3-series
arfa79 bd4c29e
fix(datadog_agent): remove v3beta series route
arfa79 bab1da0
Merge remote-tracking branch 'fork/feat/datadog-agent-v3-series' into…
arfa79 e7975ab
Merge origin/master into feat/datadog-agent-v3-series
arfa79 b61ea86
Merge branch 'master' into feat/datadog-agent-v3-series
arfa79 87f71b6
Merge remote-tracking branch 'origin/master' into feat/datadog-agent-…
arfa79 8e7ed05
Merge branch 'master' into feat/datadog-agent-v3-series
arfa79 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
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,3 @@ | ||
| The `datadog_agent` source now accepts the v3 series metrics intake format used by default by Datadog Agent 7.81.0 and newer. | ||
|
|
||
| authors: arfa79 |
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
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
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,74 @@ | ||
| // Extracted from https://github.com/DataDog/agent-payload/blob/master/proto/metrics/intake_v3.proto | ||
|
|
||
| syntax = "proto3"; | ||
|
|
||
| package datadoghq.api.metrics.v3; | ||
|
|
||
| message Payload { | ||
| reserved 1; | ||
| Metadata metadata = 2; | ||
| MetricData metricData = 3; | ||
| } | ||
|
|
||
| message Metadata { | ||
| repeated string tags = 1; | ||
| repeated string resources = 2; | ||
| } | ||
|
|
||
| message MetricData { | ||
| bytes dictNameStr = 1; | ||
| bytes dictTagStr = 2; | ||
| repeated sint64 dictTagsets = 3; | ||
|
|
||
| bytes dictResourceStr = 4; | ||
| repeated int64 dictResourceLen = 5; | ||
| repeated sint64 dictResourceType = 6; | ||
| repeated sint64 dictResourceName = 7; | ||
|
|
||
| bytes dictSourceTypeName = 8; | ||
| repeated int32 dictOriginInfo = 9; | ||
| bytes dictUnitStr = 25; | ||
|
|
||
| repeated uint64 types = 10; | ||
| repeated sint64 nameRefs = 11; | ||
| repeated sint64 tagsetRefs = 12; | ||
| repeated sint64 resourcesRefs = 13; | ||
| repeated uint64 intervals = 14; | ||
| repeated uint64 numPoints = 15; | ||
| repeated sint64 sourceTypeNameRefs = 23; | ||
| repeated sint64 originInfoRefs = 24; | ||
| repeated sint64 unitRefs = 26; | ||
|
|
||
| repeated sint64 timestamps = 16; | ||
| repeated sint64 valsSint64 = 17; | ||
| repeated float valsFloat32 = 18; | ||
| repeated double valsFloat64 = 19; | ||
| repeated uint64 sketchNumBins = 20; | ||
| repeated sint32 sketchBinKeys = 21; | ||
| repeated uint32 sketchBinCnts = 22; | ||
| } | ||
|
|
||
| enum metricType { | ||
| UNUSED = 0; | ||
| Count = 1; | ||
| Rate = 2; | ||
| Gauge = 3; | ||
| Sketch = 4; | ||
| } | ||
|
|
||
| enum valueType { | ||
| Zero = 0x00; | ||
| Sint64 = 0x10; | ||
| Float32 = 0x20; | ||
| Float64 = 0x30; | ||
| } | ||
|
|
||
| enum metricFlags { | ||
| flagNone = 0; | ||
| flagNoIndex = 0x100; | ||
| flagHasUnit = 0x200; | ||
| } | ||
|
|
||
| message Response { | ||
| string error = 1; | ||
| } |
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
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.