Skip to content

Commit

Permalink
Remove check options from jmx template (#11686)
Browse files Browse the repository at this point in the history
* Remove default template

* Add back more options

* Add default all template

* Change to all_integrations
  • Loading branch information
sarah-witt authored Mar 17, 2022
1 parent d4fe06e commit 9bcf7cb
Show file tree
Hide file tree
Showing 33 changed files with 5 additions and 79 deletions.
4 changes: 0 additions & 4 deletions activemq/datadog_checks/activemq/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ def instance_collect_default_jvm_metrics(field, value):
return True


def instance_disable_generic_tags(field, value):
return False


def instance_empty_default_hostname(field, value):
return False

Expand Down
1 change: 0 additions & 1 deletion activemq/datadog_checks/activemq/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Config:
allow_mutation = False

collect_default_jvm_metrics: Optional[bool]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
host: str
is_jmx: Optional[bool]
Expand Down
4 changes: 0 additions & 4 deletions cassandra/datadog_checks/cassandra/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ def instance_collect_default_jvm_metrics(field, value):
return True


def instance_disable_generic_tags(field, value):
return False


def instance_empty_default_hostname(field, value):
return False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class Config:

cassandra_aliasing: bool
collect_default_jvm_metrics: Optional[bool]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
host: str
is_jmx: Optional[bool]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ def instance_collect_default_jvm_metrics(field, value):
return True


def instance_disable_generic_tags(field, value):
return False


def instance_empty_default_hostname(field, value):
return False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Config:
allow_mutation = False

collect_default_jvm_metrics: Optional[bool]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
host: str
is_jmx: Optional[bool]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- template: instances/tags
- template: instances/service
- template: instances/global
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
- template: instances/tags
- template: instances/service
- template: instances/global
- template: instances/all_integrations
- name: disable_generic_tags
description: |
Generic tags such as `cluster` will be replaced by <integration_name>_cluster to avoid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@
example: true
type: boolean

- template: instances/default
- template: instances/all_integrations
4 changes: 0 additions & 4 deletions hazelcast/datadog_checks/hazelcast/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ def instance_connect_timeout(field, value):
return get_default_field_value(field, value)


def instance_disable_generic_tags(field, value):
return False


def instance_empty_default_hostname(field, value):
return False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class Config:
aws_service: Optional[str]
collect_default_jvm_metrics: Optional[bool]
connect_timeout: Optional[float]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
extra_headers: Optional[Mapping[str, Any]]
headers: Optional[Mapping[str, Any]]
Expand Down
4 changes: 0 additions & 4 deletions hive/datadog_checks/hive/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ def instance_collect_default_jvm_metrics(field, value):
return True


def instance_disable_generic_tags(field, value):
return False


def instance_empty_default_hostname(field, value):
return False

Expand Down
1 change: 0 additions & 1 deletion hive/datadog_checks/hive/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Config:
allow_mutation = False

collect_default_jvm_metrics: Optional[bool]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
host: str
is_jmx: Optional[bool]
Expand Down
4 changes: 0 additions & 4 deletions hivemq/datadog_checks/hivemq/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ def instance_collect_default_jvm_metrics(field, value):
return True


def instance_disable_generic_tags(field, value):
return False


def instance_empty_default_hostname(field, value):
return False

Expand Down
1 change: 0 additions & 1 deletion hivemq/datadog_checks/hivemq/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Config:
allow_mutation = False

collect_default_jvm_metrics: Optional[bool]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
host: str
is_jmx: Optional[bool]
Expand Down
4 changes: 0 additions & 4 deletions hudi/datadog_checks/hudi/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ def instance_collect_default_jvm_metrics(field, value):
return True


def instance_disable_generic_tags(field, value):
return False


def instance_empty_default_hostname(field, value):
return False

Expand Down
1 change: 0 additions & 1 deletion hudi/datadog_checks/hudi/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Config:
allow_mutation = False

collect_default_jvm_metrics: Optional[bool]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
host: str
is_jmx: Optional[bool]
Expand Down
4 changes: 0 additions & 4 deletions ignite/datadog_checks/ignite/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ def instance_collect_default_jvm_metrics(field, value):
return True


def instance_disable_generic_tags(field, value):
return False


def instance_empty_default_hostname(field, value):
return False

Expand Down
1 change: 0 additions & 1 deletion ignite/datadog_checks/ignite/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Config:
allow_mutation = False

collect_default_jvm_metrics: Optional[bool]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
host: str
is_jmx: Optional[bool]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ def instance_collect_default_jvm_metrics(field, value):
return True


def instance_disable_generic_tags(field, value):
return False


def instance_empty_default_hostname(field, value):
return False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Config:
allow_mutation = False

collect_default_jvm_metrics: Optional[bool]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
host: Optional[str]
is_jmx: Optional[bool]
Expand Down
4 changes: 0 additions & 4 deletions kafka/datadog_checks/kafka/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ def instance_collect_default_jvm_metrics(field, value):
return True


def instance_disable_generic_tags(field, value):
return False


def instance_empty_default_hostname(field, value):
return False

Expand Down
1 change: 0 additions & 1 deletion kafka/datadog_checks/kafka/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Config:
allow_mutation = False

collect_default_jvm_metrics: Optional[bool]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
host: str
is_jmx: Optional[bool]
Expand Down
4 changes: 0 additions & 4 deletions presto/datadog_checks/presto/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ def instance_collect_default_jvm_metrics(field, value):
return True


def instance_disable_generic_tags(field, value):
return False


def instance_empty_default_hostname(field, value):
return False

Expand Down
1 change: 0 additions & 1 deletion presto/datadog_checks/presto/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Config:
allow_mutation = False

collect_default_jvm_metrics: Optional[bool]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
host: str
is_jmx: Optional[bool]
Expand Down
4 changes: 0 additions & 4 deletions solr/datadog_checks/solr/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ def instance_collect_default_jvm_metrics(field, value):
return True


def instance_disable_generic_tags(field, value):
return False


def instance_empty_default_hostname(field, value):
return False

Expand Down
1 change: 0 additions & 1 deletion solr/datadog_checks/solr/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Config:
allow_mutation = False

collect_default_jvm_metrics: Optional[bool]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
host: str
is_jmx: Optional[bool]
Expand Down
4 changes: 0 additions & 4 deletions sonarqube/datadog_checks/sonarqube/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ def instance_default_tag(field, value):
return 'component'


def instance_disable_generic_tags(field, value):
return False


def instance_empty_default_hostname(field, value):
return False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class Config:
default_exclude: Optional[Sequence[str]]
default_include: Optional[Sequence[str]]
default_tag: Optional[str]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
extra_headers: Optional[Mapping[str, Any]]
headers: Optional[Mapping[str, Any]]
Expand Down
4 changes: 0 additions & 4 deletions tomcat/datadog_checks/tomcat/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ def instance_collect_default_jvm_metrics(field, value):
return True


def instance_disable_generic_tags(field, value):
return False


def instance_empty_default_hostname(field, value):
return False

Expand Down
1 change: 0 additions & 1 deletion tomcat/datadog_checks/tomcat/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Config:
allow_mutation = False

collect_default_jvm_metrics: Optional[bool]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
host: str
is_jmx: Optional[bool]
Expand Down
4 changes: 0 additions & 4 deletions weblogic/datadog_checks/weblogic/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ def instance_collect_default_jvm_metrics(field, value):
return True


def instance_disable_generic_tags(field, value):
return False


def instance_empty_default_hostname(field, value):
return False

Expand Down
1 change: 0 additions & 1 deletion weblogic/datadog_checks/weblogic/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Config:
allow_mutation = False

collect_default_jvm_metrics: Optional[bool]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
host: str
is_jmx: Optional[bool]
Expand Down

0 comments on commit 9bcf7cb

Please sign in to comment.