Skip to content
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

[checks] Service checks should include user-configured tags #1482

Closed
wang-arthur opened this issue Mar 27, 2015 · 8 comments
Closed

[checks] Service checks should include user-configured tags #1482

wang-arthur opened this issue Mar 27, 2015 · 8 comments
Assignees
Milestone

Comments

@wang-arthur
Copy link
Contributor

The HTTP, TCP, and riak service checks should include user-configured tags.

Currently, the tags for these service checks are not configurable:
https://github.com/DataDog/dd-agent/blob/master/checks.d/http_check.py#L255
https://github.com/DataDog/dd-agent/blob/master/checks.d/tcp_check.py#L166-L167
https://github.com/DataDog/dd-agent/blob/master/checks.d/riak.py#L63

@wang-arthur wang-arthur changed the title Network service checks should include user-configured tags [http/tcp checks] Network service checks should include user-configured tags Mar 27, 2015
@VynceMontgomery
Copy link

riak service check also ignores tags; would be nice if it didn't. Not sure if that can be part of this issue or if it needs to be a separate one.
.

@wang-arthur wang-arthur changed the title [http/tcp checks] Network service checks should include user-configured tags [checks] Service checks should include user-configured tags Mar 27, 2015
@wang-arthur
Copy link
Contributor Author

Thanks @VynceMontgomery! I've updated this ticket to include riak.

@conorbranagan
Copy link
Contributor

There's a current limitation in the backend on adding custom tags due to the grammar we use for service-check based monitors. Because we have implicit grouping versus explicit we will always pick the lowest granularity of grouping and alert per that group. For example, if you submit with with {host:val,port:val2,db:val3} tags, then we'll auto group results with {host,port,db}.

So this means if you add custom tags with the key:val format, they will throw off the simplest grouping.

The grammar allows for explicit grouping but up until now you did not define grouping unless you were using a multi-alert.

We're working on changing this by either (a) adding explicit grouping when you create monitors in the UI (we'll migrate existing), (b) having the alerting engine have a "known" list of groupings for non-custom checks and custom checks will have explicit grouping.

All in all, the goal is to get this working with HTTP and TCP checks first because that seems to be the most often requested case. Ideally we'll come up with a general way that can apply to every check.

@VynceMontgomery
Copy link

As a user I can tell you that I have no idea what that last comment means.

@conorbranagan
Copy link
Contributor

@VynceMontgomery In short, we can't support custom tags right now due to a limitation on the backend and not in the Agent itself. We're starting work to remove this limitation and once that's changed, we'll be able to send custom tags in the Agent without trouble.

@conorbranagan
Copy link
Contributor

@wang-arthur @LeoCavaille @remh Necessary changes have been made to the alerting engine so that we can support custom tags from our Agent checks. Ping me if you need more info.

@remh remh added this to the 5.4.0 milestone Apr 17, 2015
@yannmh
Copy link
Member

yannmh commented Jun 4, 2015

Partially done for a few checks: HTTP, TCP checks (see #1642).
Let's finish this for the 5.5.0

@yannmh yannmh modified the milestones: 5.5.0, 5.4.0 Jun 5, 2015
@yannmh
Copy link
Member

yannmh commented Jul 31, 2015

Last one Riak.
Assigning you @garnermccloud, as you are working on it.

@yannmh yannmh modified the milestones: 5.6.0, 5.5.0 Jul 31, 2015
degemer added a commit that referenced this issue Oct 20, 2015
Fix #1482
Revert #1527 (backend wasn't able to
deal with custom service checks tags at this time)
degemer added a commit that referenced this issue Oct 20, 2015
Fix #1482
Revert #1527 (backend wasn't able to
deal with custom service checks tags at that time)
urosgruber pushed a commit to urosgruber/dd-agent that referenced this issue Dec 23, 2015
Fix DataDog#1482
Revert DataDog#1527 (backend wasn't able to
deal with custom service checks tags at that time)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants