-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
data source to retrieve a list of all of custom cloudwatch metrics #3644
Comments
Same need here, I was looking for rewriting old Ansible script that looks up disk usage metric for all nodes in Redshift cluster and creates alarms for the metrics. A data source that would allow querying Cloudwatch metrics would fit here nicely. |
I was able to overcome this via external data source, by querying metrics via aws cli and outputting a
The JMESPath looks a bit hairy in this case, but anyway, a external data source might be workable solution. |
I spent some time working on a datasource for aws cloudwatch metrics, but it seems to be difficult to write an acceptance test for it. There are no cloudwatch metrics in an AWS account, unless you do a cloudwatch PutMetricData, which is not implemented in any terraform datasource/resource. The WIP code can be found here: master...wardviaene:f-aws_cloudwatch_metrics |
Submitted a PR: #14253 |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
It would be nice to have a data source for custom cloudwatch metrics. I manually build my own bash shell script to get the list of custom metric by namespace and then use that list to generate the cloudwatch alarms.
The text was updated successfully, but these errors were encountered: