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

haproxy- grabbing 'server' name instead of host name #617

Closed
MisterRayCo opened this issue Aug 15, 2013 · 8 comments
Closed

haproxy- grabbing 'server' name instead of host name #617

MisterRayCo opened this issue Aug 15, 2013 · 8 comments
Assignees
Labels
Milestone

Comments

@MisterRayCo
Copy link
Contributor

might be a tag misreported, possibly in this logic:
https://github.com/DataDog/dd-agent/blob/master/checks.d/haproxy.py#L151-L154

@conorbranagan
Copy link
Contributor

It looks like the real problem is that we're treating HAProxy backends as hosts that are actually running HAProxy. This works in our specific setup - where we have haproxy running on all of the backend hosts - but this is unusual and would actually be considered "wrong" in many cases.

We should only consider the host that's returning the stats as the host that has the haproxy metrics and give the metrics tags of "backend:$hostname" for every backend that's listed in the stats.

@ghost ghost assigned remh Sep 5, 2013
@remh
Copy link

remh commented Sep 5, 2013

The fix is pretty easy. But how should we manage this change with the existing users ?
There is a lot of users using the haproxy integration.
Changing the way it's behaving will break their dashboards.
Should we release this with 4.0.0 ?

@miketheman
Copy link
Contributor

I'm going to go with the opinion that since this is a bug in the way we collected data, and people have complained about nodes not having the DD agent appearing in their infrastructure lists, and potentially being charged for, this isn't a backwards-breaking feature, and doesn't need a major revision bump.

@olidb2
Copy link
Member

olidb2 commented Sep 6, 2013

Yet...
1- let's pick our two biggest customers using HAProxy,
2- understand beforehands how it will impact them (write it down)
3- communicate it to them if needed (Ray, your call)
4- check that after upgrade their behavior corresponds to what we expected.

On Fri, Sep 6, 2013 at 8:53 AM, Mike Fiedler [email protected]:

I'm going to go with the opinion that since this is a bug in the way we
collected data, and people have complained about nodes not having the DD
agent appearing in their infrastructure lists, and potentially being
charged for, this isn't a backwards-breaking feature, and doesn't need a
major revision bump.


Reply to this email directly or view it on GitHubhttps://github.com//issues/617#issuecomment-23937563
.

@remh
Copy link

remh commented Sep 9, 2013

@MisterRayCo I made a list of the consequences of fixing that issue.
I'll follow up with you so we can reach a few customers and have their point of view on that.

@mrardon
Copy link

mrardon commented Oct 2, 2013

have there been any updates to this?

@alq666
Copy link
Member

alq666 commented Oct 9, 2013

@mrardon we're testing the changes internally and plan to release this shortly.

@remh
Copy link

remh commented Dec 18, 2013

Fixed with agent 4.x

@remh remh closed this as completed Dec 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants