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

Made HTTP check tag aware #647

Merged
merged 4 commits into from
Sep 3, 2013
Merged

Made HTTP check tag aware #647

merged 4 commits into from
Sep 3, 2013

Conversation

ordenull
Copy link
Contributor

The http_check wasn't tag aware. This is problematic when checking multiple virtual hosts on the server that the agent is running on. In such a scenario all of the URLs would be http://localhost and only the "Host" header would be changed; They would all be tagged as url:http://localhost without an ability to add extra tags.

In a scenario where there might be multiple web servers behind a load balancer it's important to be able to check each web server's health instead of referring to the website's URL which would be a VIP shared by the cluster.

@@ -8,6 +8,8 @@ class HTTPCheck(ServicesCheck):

def _load_conf(self, instance):
# Fetches the conf
name = instance.get('name', None)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the name used for ? You don't use it anywhere.

@remh
Copy link
Contributor

remh commented Aug 30, 2013

Thanks for this pull request!
Can you fix the few things I mentioned ?

@ordenull
Copy link
Contributor Author

I made the fixes. Thank you for responding quickly.

remh added a commit that referenced this pull request Sep 3, 2013
Made HTTP check tag aware
@remh remh merged commit 6bfc595 into DataDog:master Sep 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants