-
Notifications
You must be signed in to change notification settings - Fork 31
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
Don't append "tag:" to tags collected for a node managed by Chef #58
Comments
Hi @ovaistariq! One of the reasons we prepend the For instance: Can you elaborate on why the tag value in Datadog doesn't make sense? |
The reason I think it doesn't make sense is that it if there are Chef node tags such as |
@ovaistariq That makes sense. Since there's no deterministic way of setting Chef tags - they are arbitrary strings after all - would it make sense for the This is potentially a breaking change to anyone that uses tags today inside Datadog with the |
When a user sets a tag like `service:mysql` as a Chef tag, don't add another `tag:` in front of that string, rather pass it along as is. Fixes #58
@ovaistariq Can you check out the linked code? If that makes sense, we can inspect to see how many users this might affect to see how disruptive it would be to make this change. |
@miketheman The code looks good to me as it covers both the cases (Y) |
I look forward to hearing what will happen to the fix after you have checked to see how many users actually depend on "tag:" being present in the tag name. Assuming the impact is marginal, would you have an idea as to when the next release "including the fix" would be. |
Update on this front. Upon inspection, enough users are using the A likelier change will be to add a flag to active the new behavior, defaulting to false, and marking the existing one as deprecated for a few releases, as well as introducing a new one that can be activated on demand. |
@miketheman thanks for the update. Can I then expect a flag to be added to enable the new behavior. |
When we write it, yes. ⏰ On Fri, Oct 23, 2015, 21:06 Ovais Tariq notifications@github.com wrote:
|
I meant to say is there an immediate plan or when should I expect to see this feature released? |
There's no immediate plan for this - it's something I've been working on in On Sat, Oct 24, 2015 at 4:55 PM, Ovais Tariq notifications@github.com
|
That's exactly the problem. I want to group by values of the actual tags. I don't want to group by tuples of the tag name and value. If Datadog is receiving tags like this: tag:datacenter:east Then what it sees is something called "tag" that has four values. I want to slice by "datacenter" and "environment". I would never want to slice by "tag" as that mixes up what are actually two different tags. |
@andrewsf Thanks for the notes! I think this was covered in #58 (comment). I've been trying to determine a safe way to introduce a config flag to control the handler's tag behavior, and emitting a deprecation warning when the original method is used. i've drafted a page here: https://github.com/DataDog/chef-handler-datadog/wiki/Legacy-Tags and would appreciate some read-through and confirming that I have your ideas in place before committing to a code path that may not be ideal. I'm trying to allow for current users to continue to have the existing behaviors, but be warned about the upcoming change, and allow adoption of the new approach. |
This is an alternative solution for DataDog#58 User can decide to send tags unprefixed by passing tag_prefix = '' to chef-handler-datadog. Default prefix is still 'tag'.
The change to support this has been released in the Handler, and the next step is to release the Chef Cookbook changes to support the user selection of prefix. Closing, thanks! |
The Chef tags collection function appends "tag:" to the tags collected which doesn't make sense:
Since these are already tags so it would be better to have them just collected as they are without appending "tag:". Majority of the times Chef tags are added to nodes to identify them specifically.
The text was updated successfully, but these errors were encountered: