amazon-cloudwatch-agent
amazon-cloudwatch-agent copied to clipboard
Add AMP as a metrics destination
Description of changes
Introduce the ability to publish metrics to Amazon Managed Prometheus as a destination. Key highlights:
- Add
metrics_destinationsundermetricssection of the agent config. The two supported destinations arecloudwatch(default if unspecified) andamp. -
ampdestination requires theworkspace_idas a required input. The remote write endpoint is built using a regex on top of the workspace ID. - Leverages the
prometheusremotewriteexporterto publish metrics to AMP. - Attaches the
sigv4authextensionto sign API calls made to AMP using AWS credentials. - Extract
rollup_dimensionsanddrop_original_metricsfunctionality into a new processor that can be applied to non-cloudwatch destinations.
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
Manually tested changes on an EC2 to publish cpu metrics to AMP.
Requirements
Before commit the code, please do the following steps.
- Run
make fmtandmake fmt-sh - Run
make lint
This PR was marked stale due to lack of activity.
This PR was marked stale due to lack of activity.