Adds append_dimensions to collectd, supporting custom metric dimensions#1997
Open
TravisStark wants to merge 1 commit intomainfrom
Open
Adds append_dimensions to collectd, supporting custom metric dimensions#1997TravisStark wants to merge 1 commit intomainfrom
TravisStark wants to merge 1 commit intomainfrom
Conversation
feba8d7 to
159ff44
Compare
8b8e009 to
addd131
Compare
okankoAMZ
previously approved these changes
Feb 3, 2026
Contributor
okankoAMZ
left a comment
There was a problem hiding this comment.
small nitpicks but looks good!
jefchien
reviewed
Feb 4, 2026
Contributor
jefchien
left a comment
There was a problem hiding this comment.
Can we add this to the sampleConfigs? Want to make sure this sets the TOML correctly for collectd.
addd131 to
d166f19
Compare
Contributor
Author
Added sample config: collectd_append_dimensions_linux |
jefchien
previously approved these changes
Feb 9, 2026
jefchien
reviewed
Feb 9, 2026
Contributor
There was a problem hiding this comment.
If we want this to be used in the tests, we need to update translator/cmdutil/translatorutil_test.go.
Contributor
Author
There was a problem hiding this comment.
Good catch, updated.
f275724 to
c8d3576
Compare
c8d3576 to
a2dfe56
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description of the issue
Collectd plugin doesn't support append_dimensions, preventing users from adding custom dimensions to collectd metrics for fleet-level aggregation.
Description of changes
License
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Tests
Agent JSON
{ "metrics": { "namespace": "CollectdAggregationTest", "aggregation_dimensions": [ ["Component", "Environment", "type_instance", "InstanceId"], ["Component", "Environment", "type_instance"], ["Component", "type_instance"] ], "metrics_collected": { "collectd": { "service_address": "udp://127.0.0.1:25826", "name_prefix": "collectd_", "collectd_auth_file": "/etc/collectd/auth_file", "collectd_security_level": "encrypt", "metrics_aggregation_interval": 60, "append_dimensions": { "InstanceId": "${aws:InstanceId}", "InstanceType": "${aws:InstanceType}", "Component": "RDSRialtoRouter", "Environment": "Test" } } } } }YAML Config:
TOML Config:
Collectd config
Requirements
Before commiting your code, please do the following steps.
make fmtandmake fmt-shmake lintIntegration Tests
To run integration tests against this PR, add the
ready for testinglabel.