Skip to content

Commit

Permalink
[elastic]❌ cluster_name tag from service checks
Browse files Browse the repository at this point in the history
Remove `cluster_name` tag from service checks.
  • Loading branch information
yannmh committed Sep 8, 2016
1 parent 0f20aa4 commit d4c3d76
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion checks.d/elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@ def check(self, instance):
# retreive the cluster name from the data, and append it to the
# master tag list.
config.tags.append("cluster_name:{}".format(stats_data['cluster_name']))
config.service_check_tags.append("cluster_name:{}".format(stats_data['cluster_name']))
self._process_stats_data(nodes_url, stats_data, stats_metrics, config)

# Load clusterwise data
Expand Down
2 changes: 1 addition & 1 deletion tests/checks/integration/test_elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def test_check(self):
self.assertMetric(
m_name, tags=m_tags, count=1, hostname=hostname)

good_sc_tags = ['host:localhost', 'port:{0}'.format(port)] + cluster_tag
good_sc_tags = ['host:localhost', 'port:{0}'.format(port)]
bad_sc_tags = ['host:localhost', 'port:{0}'.format(bad_port)]

self.assertServiceCheckOK('elasticsearch.can_connect',
Expand Down

0 comments on commit d4c3d76

Please sign in to comment.