Adds append_dimensions to collectd, supporting custom metric dimensions#1997
Adds append_dimensions to collectd, supporting custom metric dimensions#1997TravisStark merged 2 commits intomainfrom
Conversation
feba8d7 to
159ff44
Compare
8b8e009 to
addd131
Compare
okankoAMZ
left a comment
There was a problem hiding this comment.
small nitpicks but looks good!
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
Added sample config: collectd_append_dimensions_linux |
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.
There was a problem hiding this comment.
Good catch, updated.
f275724 to
c8d3576
Compare
c8d3576 to
a2dfe56
Compare
|
This PR was marked stale due to lack of activity. |
a2dfe56 to
50a3865
Compare
| "service_address": "udp://127.0.0.1:25826", | ||
| "name_prefix": "collectd_", | ||
| "collectd_auth_file": "/etc/collectd/auth_file", | ||
| "collectd_security_level": "encrypt", |
There was a problem hiding this comment.
does this require a key by anyway?
There was a problem hiding this comment.
I believe the auth_file is the key
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.