-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Feature request: add option to locally inject tags in dogstatsd before forwarding #1477
Comments
Hello @ewdurbin , Host tags set via Could you please confirm your tags are not visible in the metric summary page? |
@xvello in this instance I'm not sending host metadata and just want to run dogstatsd as a sidecar to specific services to isolate them to a separate account/key, attaching tags managed by the infrastructure along the way. this is a departure from the previous agent as far as I'm aware and would be a nice feature, even if behind a separate flag. |
Please note that disabling As the |
@xvello in this case, the Renaming the issue is fine, but I'd like to restate that previous versions of the agent attached configuration from |
+1 |
Given that host aliases aren't unique e.g. in EC2 not having these tags sent with the timeseries causes metrics from hosts in other VPCs to get confused with each other and it's extremely inconvenient when this pops up which is fairly regularly. I think the rename proposed is fine, but please implement this 🙏 |
DD_TAGS
Hi @2rs2ts, thanks for chiming in! @ewdurbin Sorry, only reading through your feature request now. AFAIK previous versions of the Agent did not attach |
@olivielpeau Your explanation of previous versions makes sense, as I previously configured the The main thing I think that lead to this feature request is that the core agent in dd-agent v6 accepts tags via the For use cases that don't necessitate the full agent, the dogstatsd docker image is rather useful, but doesn't accept the same This issue is requesting that the dogstatsd only image accept |
Thanks @ewdurbin! I read the whole convo again and noticed that you disabled host metadata collection (with So this feature request is indeed something we the Agent doesn't support at the moment. The feature could work like this:
Does this look like a good description of the feature you'd like? |
@olivielpeau that sounds spot on, thanks. |
I have an open ticket about this (152366), your backend treats host aliases as the same thing as the primary hostname value for hosts, ergo we get alerts for hosts that don't post metrics we're alerting on, even when we group by a tag that should only exist on the hosts that do post the metrics. Yes we are absolutely certain we use EC2 instance ID for the primary hostname, but it does not matter, host aliases screw it up. This happens from metrics and events sent by agent checks, autodiscovery, and metrics sent via statsd, and it affects both 5.x and 6.x. Quite a pickle, and it wasn't a problem until maybe 4 months ago, so I assume it is backend changes... but you could make your backend problems easier to solve if you attached these tags on the metrics you send to your backend to disambiguate them. |
@2rs2ts Thanks for your response. From what I've checked there hasn't been any backend change that could explain what you're experiencing: host aliases are only used so that metrics coming in with a host alias can be attached to the host that has that host alias (and once the metric is attached to the host, the host tags of that host are applied to the metric). I don't think the feature request here is going to solve the issue you're experiencing with host aliases on 5.x and 6.x agents for metrics coming from both dogstatsd and agent checks. Could you share more information about what you're experiencing in the open ticket you have with our support team? (in particular, instances of metrics from 5.x agent checks being attached to the wrong host, or of dogstatsd metrics coming attached to wrong host tags). Thanks! |
Yeah we already sent the flares and everything... if this feature request won't help with my situation then ok, that's a bummer, sorry for the distraction 😅 |
We'd like this as well: mainly, we generally don't find the |
My organization would also like a way to eliminate the We have tried manually adding a fake value for the |
Describe what happened:
I set
DD_TAGS
to a set of tags joined by spaces and kicked offdogstatsd
Describe what you expected:
I expected the tags to be added before metrics were submitted to DataDog's endpoints
Steps to reproduce the issue:
Then submit some metrics, note that nothing from DD_TAGS is added before submitting
The text was updated successfully, but these errors were encountered: