Add cost warning and filtering example to CloudWatch documentation #1557
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📢 Type of change
📜 Description
This PR enhances the CloudWatch metrics documentation by adding guidance about potential cost implications and metric filtering.
Specifically, it adds:
💡 Motivation and Context
When CloudWatch metrics integration is enabled, Spring Boot Actuator and Micrometer publish a large number of default metrics.
Without explicit filtering, this may result in unintended CloudWatch costs.
Currently, the documentation does not clearly explain:
This PR addresses that gap by making the cost implications explicit and documenting a recommended way to restrict exported metrics.
While this PR does not change the default behavior, it helps clarify and mitigate the concerns raised in #873 by documenting the cost implications and recommended configuration.
The example code included in this documentation is based on the snippet originally shared by the issue author
💚 How did you test it?
📝 Checklist
🔮 Next steps