'CloudWatch metrics export to AWS managed Prometheus
Since CloudWatch metrics only has 15 months of data retention, in order to see a longer metrics change and use metrics in other flexible ways, we would like to export metrics from CloudWatch to AWS managed Prometheus.
The simplest way may be to use an OpenTelemetry collector to scrape metrics from CloudWatch and send to AWS managed Prometheus. But I don't see any OpenTelemetry receiver that can scrape metrics from CloudWatch directly. Is this idea a feasible way to solve my problem?
Solution 1:[1]
I would say scraping is not the best approach. AWS offers CloudWatch Metric Streams, so you can continually stream CloudWatch metrics to a destination of your choice. My blind guess for the pipeline, which you can use: CloudWatch Metric Stream -> Kinesis Data Firehose -> Lambda -> AWS managed Prometheus.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Jan Garaj |
