-
Notifications
You must be signed in to change notification settings - Fork 814
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
[hdfs_jmx] An HDFS agent that uses JMX #2235
Conversation
Thanks @zachradtka and @wjsl for your contributions! We'll review your PRs in depth soon. |
I just pushed a quick change that added a few metrics for the HDFS namenode and split the agent-check for the datanodes and for the name node. The metrics for the namenode are as follows.
Sorry for the late add, but I really felt these metrics would be helpful. |
return MockResponse(body, 200) | ||
|
||
class HDFSDataNode(AgentCheckTest): | ||
CHECK_NAME = 'hdfs_jmx' |
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.
Don't forget to update CHECK_NAME
to hdfs_datanode
;)
Added a bunch of comments, most of them are nitpicks. The checks looks good overall, thanks! I've only added comments on the namenode check, but since the datanode check is pretty similar could you also take them into account for the datanode check? One last thing: we try to keep our metrics' and service checks' prefixes similar to the checks' names, so could you rename all the metrics and service checks to Thanks again! |
Thanks for the comments, I completed all of them on both the datanode and namenode agent checks. |
|
||
# Add query_params as arguments | ||
if query_params: | ||
query = '&'.join(['{}={}'.format(key, value) for key, value in query_params.iteritems()]) |
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 support python 2.6 so you have to use '{0}={1}'.format(key, value)
here (i.e. number the fields)
Thanks for addressing my comments! I've added in a few comments and a question, once they're addressed the check should be good to go. |
All comments are always welcome! I have fixed all of the concerns for both the datanode and namenode agents. Let me know what to do next. |
Added one comment, once it's addressed could you squash your commits into one? Thanks! |
5ee743f
to
8a05e2f
Compare
OK, All commits squashed and rebased to the latest master. |
Thanks again! Looks good, I'll merge once the CI passes. |
[hdfs_jmx] An HDFS agent that uses JMX
An agent check for HDFS that uses the JMX interface to gather HDFS metrics from individual HDFS data nodes.
The metrics collected are
Authors:
@zachradtka
@wjsl