-
Notifications
You must be signed in to change notification settings - Fork 813
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
Checks.d #194
Conversation
Conflicts: dogstatsd.py
Conflicts: checks/net/haproxy.py
Still needs packaging. |
Are we splitting config out as well? Maybe it'd be better if the files were structured like:
|
import logging | ||
from time import time | ||
|
||
logger = logging.getLogger('dogstatsd') |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry __name__
All in all, great stuff. I'm excited for this. Also, I'd like to see the "generic config" at some point too. |
@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. |
@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 |
Packaging is good now. It will put |
Conflicts: agent.py
Just find the first class that inherits from AgentCheck
Conflicts: checks/db/redisDb.py
Everything you could ever want from the agent.