amazon-cloudwatch-agent
amazon-cloudwatch-agent copied to clipboard
Add statsd.templates to the config json schema
Description of the issue
The statsd input module supports Telegraf style graphite templates, but these are blocked in the json schema.
Specifically, I've implemented this PR to resolve #172, but it adds additional capabilities to the agent beyond that (i.e. metric filtering, dynamic tagging, etc.)
Description of changes
This makes the config validator recognize the templates
parameter, which is already supported by the statsd input module.
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
Note that the feature was already implemented, I merely enabled it to be configured.
- Updated existing config tests
- Added basic tests for the new field
@jefchien @pxaws I'd appreciate a review here 🙏
@ZhenyuTan-amz ?
Anyone? @haojhcwa @straussb ?
Hey Matan,
thanks for the PR! I'm going to discuss this with the team and get back to you. We need to understand a little more about the impact of statsd templates as well as the original issue in #172
This PR was marked stale due to lack of activity.
@jhnlsn Any updates on your side? Currently, I keep this fork alive for internal usage in my company and it's not so fun to maintain.
This PR was marked stale due to lack of activity.
@jhnlsn any updates? This has been parked for a long time now.
This PR was marked stale due to lack of activity.
This PR was marked stale due to lack of activity.
We feel this is needed to have some reasonable option to define meaningful alarms on CW on the custom metrics sent by the agent.
@jhnlsn ping
Hi @matan129, can you help us in explain the use case for the templates. However, as the original issue , there are similar PR to support global dimension and another thing to consider would be: Telegraf has a concept of global tags which also solves the original issues. The templates is similar to a band-aid to specific plugin only.
It looks to me like the global dimensions PR indeed solves a superset of what my PR solves. Closing it.