Skip to content

Commit

Permalink
Remove server from the list of generic tags (#10344)
Browse files Browse the repository at this point in the history
* Revert "Add server as generic tag (#10100)"

This reverts commit f03660c.

* revert #10164
  • Loading branch information
ofek authored Oct 5, 2021
1 parent 473ea21 commit feff48d
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 30 deletions.
5 changes: 0 additions & 5 deletions avi_vantage/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,3 @@ files:
persist_connections.default: true
openmetrics_endpoint.hidden: true
openmetrics_endpoint.required: false
disable_generic_tags.hidden: false
disable_generic_tags.value.display_default: true
disable_generic_tags.description: |
Replaces generic tag such as `server` with `avi_vantage_server` to avoid getting it mixed with
other integratons tags.
1 change: 0 additions & 1 deletion avi_vantage/datadog_checks/avi_vantage/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ def create_scraper(self, config):
return scraper

def check(self, _):
self.disable_generic_tags = self.config.disable_generic_tags
with self.login():
try:
self.collect_avi_version()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def instance_connect_timeout(field, value):


def instance_disable_generic_tags(field, value):
return True
return False


def instance_empty_default_hostname(field, value):
Expand Down
6 changes: 0 additions & 6 deletions avi_vantage/datadog_checks/avi_vantage/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,3 @@ instances:
## This is useful for cluster-level checks.
#
# empty_default_hostname: false

## @param disable_generic_tags - boolean - optional - default: true
## Replaces generic tag such as `server` with `avi_vantage_server` to avoid getting it mixed with
## other integratons tags.
#
# disable_generic_tags: true
7 changes: 2 additions & 5 deletions avi_vantage/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,11 @@ def _get_metrics(endpoint=None):
expected_metrics = json.load(f)

if endpoint is None:
endpoint = 'https://34.123.32.255/'
return expected_metrics

transformed_expected_metrics = []
for metric in expected_metrics:
tags = [
t.replace('https://34.123.32.255/', endpoint).replace('server:', 'avi_vantage_server:')
for t in metric['tags']
]
tags = [t.replace('https://34.123.32.255/', endpoint) for t in metric['tags']]
transformed_expected_metrics.append(
{"name": metric['name'], "type": metric['type'], "value": metric['value'], "tags": tags}
)
Expand Down
1 change: 0 additions & 1 deletion clickhouse/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ setenv =
19: CLICKHOUSE_VERSION=19
20: CLICKHOUSE_VERSION=20
21: CLICKHOUSE_VERSION=21
DDEV_SKIP_GENERIC_TAGS_CHECK=true
commands =
pip install -r requirements.in
pytest -v {posargs}
Expand Down
1 change: 0 additions & 1 deletion datadog_checks_base/datadog_checks/base/utils/tagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
'host_name',
'hostname',
'host',
'server',
'service',
'version',
}
2 changes: 1 addition & 1 deletion gearmand/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ setenv =
1.0.6: DOCKER_IMAGE=kendu/gearman
1.0.6: DOCKER_TAG=latest
1.0.6: GEARMAND_VERSION=1.0.6
DDEV_SKIP_GENERIC_TAGS_CHECK=true

1 change: 0 additions & 1 deletion ibm_was/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ setenv =
## Waiting upstream update, see issue: https://github.com/WASdev/ci.docker.websphere-traditional/issues/198
# 8.5: IBM_WAS_VERSION=8.5.5.14-profile
9: IBM_WAS_VERSION=9.0.5.5
DDEV_SKIP_GENERIC_TAGS_CHECK=true
2 changes: 0 additions & 2 deletions jboss_wildfly/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,5 @@ deps =
passenv =
DOCKER*
COMPOSE*
setenv=
DDEV_SKIP_GENERIC_TAGS_CHECK=true
commands =
pytest -v {posargs}
2 changes: 0 additions & 2 deletions openstack/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ deps =
commands =
pip install -r requirements.in
pytest -v {posargs}
setenv =
DDEV_SKIP_GENERIC_TAGS_CHECK=true
1 change: 0 additions & 1 deletion oracle/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ setenv =
jdbc: CLIENT_LIB=jdbc
oracle: CLIENT_LIB=oracle
12.2: ORACLE_DATABASE_VERSION=12.2.0.1
DDEV_SKIP_GENERIC_TAGS_CHECK=true
commands =
pip install -r requirements.in
oracle: pip uninstall -y jpype1 # Should work even if jpype is not installed.
Expand Down
1 change: 0 additions & 1 deletion sap_hana/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ passenv =
COMPOSE*
setenv =
2: SAP_HANA_VERSION=2.00.036.00.20190223.1
DDEV_SKIP_GENERIC_TAGS_CHECK=true
commands =
pip install -r requirements.in
pytest -v {posargs}
2 changes: 0 additions & 2 deletions tls/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ passenv =
commands =
pip install -r requirements.in
pytest -v {posargs}
setenv =
DDEV_SKIP_GENERIC_TAGS_CHECK=true

0 comments on commit feff48d

Please sign in to comment.