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

[hdfs_namenode] Add instance level tags to metrics and service check #1047

Merged
merged 5 commits into from
Jan 25, 2018

Conversation

ChristineTChen
Copy link
Contributor

@ChristineTChen ChristineTChen commented Jan 23, 2018

What does this PR do?

Adds instance level tags to both metrics and service check

Motivation

What inspired you to submit this pull request?

Testing Guidelines

An overview on testing
is available in our contribution guidelines.

Versioning

  • Bumped the check version in manifest.json
  • Bumped the check version in datadog_checks/{integration}/__init__.py
  • Updated CHANGELOG.md. Please use Unreleased as the date in the title
    for the new section.
  • If PR impacts documentation, docs team has been notified or an issue has been opened on the documentation repo

Additional Notes

Anything else we should know when reviewing?

@hush-hush hush-hush self-assigned this Jan 24, 2018
@hush-hush hush-hush added this to the 5.22 milestone Jan 24, 2018
Copy link
Member

@hush-hush hush-hush left a comment

Choose a reason for hiding this comment

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

Just a few nitpicks 👍

@@ -1,5 +1,11 @@
# CHANGELOG - hdfs_namenode

1.1.1 / Unreleased
Copy link
Member

Choose a reason for hiding this comment

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

Since we adding support for instance tags it's a feature and not a bug fix: version should be 1.2.0

==================

### Changes
* [BUGFIX] add instance level tags to metrics and service check
Copy link
Member

Choose a reason for hiding this comment

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

You should add the PR number

@@ -10,7 +10,9 @@ instances:
# the property dfs.http.address or dfs.namenode.http-address
#
- hdfs_namenode_jmx_uri: http://localhost:50070

# tags:
Copy link
Member

Choose a reason for hiding this comment

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

if jmx_address is None:
raise Exception('The JMX URL must be specified in the instance configuration')


namenode_url = ['namenode_url:' + jmx_address]
Copy link
Member

Choose a reason for hiding this comment

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

No need for a intermediate namenode_url variable, and this we're adding only 1 item we should use append:

tags.append('namenode_url:' + jmx_address)

@ChristineTChen ChristineTChen merged commit c1e2a49 into master Jan 25, 2018
@ChristineTChen ChristineTChen deleted the christine/hdfs-namenode-tags branch January 25, 2018 16:35
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.

2 participants