-
Notifications
You must be signed in to change notification settings - Fork 35
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
Monitors: Pass on Stack tags #226
Comments
Cloudformation supports tags at a stack level. They are normally passed on to all Cloudformation resources (some resources don't support that yet...). Datadog monitors got tags, too. With this change, the Cloudformation Stack tags are copied to the Datadog monitor. Additionally, the AWS autogenerated tags like stack name and logical id are also set. If a tag is already set explicitly at a monitor, the monitor value is being used. Since Datadog uses a : to separate key and value, all : are replaced with _. In order to maintain backwards compatibility, this feature is switched off by default. It can be enabled account-wide via the type configuration, the same way Datadog credentials are being set.
Cloudformation supports tags at a stack level. They are normally passed on to all Cloudformation resources (some resources don't support that yet...). Datadog monitors got tags, too. With this change, the Cloudformation Stack tags are copied to the Datadog monitor. Additionally, the AWS autogenerated tags like stack name and logical id are also set. If a tag is already set explicitly at a monitor, the monitor value is being used. Since Datadog uses a : to separate key and value, all : are replaced with _. In order to maintain backwards compatibility, this feature is switched off by default. It can be enabled account-wide via the type configuration, the same way Datadog credentials are being set.
* Copying Stack tags to the Datadog monitor (#226) * refactor and ignore tag ordering * fix tag key correction Co-authored-by: Ruwen <[email protected]>
Thanks for your contribution! This issue has been automatically marked as stale because it has not had activity in the last 30 days. Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity. Thank you for participating in the Datadog open source community. If you would like this issue to remain open:
|
Is your feature request related to a problem? Please describe.
I got already on stack level lots of tags. Adding them manually to a monitor is just duplication.
Describe the solution you'd like
Stack tags are passed on to the monitor.
Describe alternatives you've considered
none
Additional context
I will try to implement it.
The only interesting question is: shall we disable this feature by default for backwards compatibility?
The text was updated successfully, but these errors were encountered: