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.d #194

Merged
merged 50 commits into from
Sep 26, 2012
Merged

Checks.d #194

merged 50 commits into from
Sep 26, 2012

Conversation

conorbranagan
Copy link
Contributor

Everything you could ever want from the agent.

@conorbranagan
Copy link
Contributor Author

Still needs packaging.

@clofresh
Copy link
Contributor

Are we splitting config out as well? Maybe it'd be better if the files were structured like:

/etc/datadog/checks.d/haproxy/haproxy.py
/etc/datadog/checks.d/haproxy/haproxy.yaml

import logging
from time import time

logger = logging.getLogger('dogstatsd')
Copy link
Contributor

Choose a reason for hiding this comment

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

We should name this logger with name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Which name?

Copy link
Contributor

Choose a reason for hiding this comment

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

sorry __name__

@clutchski
Copy link
Contributor

All in all, great stuff. I'm excited for this. Also, I'd like to see the "generic config" at some point too.

@conorbranagan
Copy link
Contributor Author

@clofresh The structure I was thinking we'd follow was:

/etc/dd-agent/conf.d/haproxy.yaml

/usr/share/agent/checks.d/haproxy.py

The keeps all of the python modules in one place and the conf in one place.

@conorbranagan
Copy link
Contributor Author

@clutchski @clofresh I made some decent changes to this pull, so it could probably use another look from you guys.

After a discussion with Matt P we came to the conclusion that it made more sense to send the full payload dict to the check instead of doing a ** and having it go as variables. The main reason that convinced me is if we ever had non-python-friendly names for a key, it would break things.

@conorbranagan
Copy link
Contributor Author

Packaging is good now. It will put conf.d and checks.d in the right places. This should be good to go, pending any other things that come up in a review.

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.

3 participants