diff --git a/activemq/datadog_checks/activemq/data/conf.yaml.example b/activemq/datadog_checks/activemq/data/conf.yaml.example index 72ddacde1c78f..fa61a1637f298 100644 --- a/activemq/datadog_checks/activemq/data/conf.yaml.example +++ b/activemq/datadog_checks/activemq/data/conf.yaml.example @@ -12,7 +12,7 @@ init_config: # collect_default_metrics: true - ## @param new_gc_metrics - boolean - optional - default: False + ## @param new_gc_metrics - boolean - optional - default: false ## Set to true to use better metric names for garbage collection metrics. ## jvm.gc.cms.count => jvm.gc.minor_collection_count ## jvm.gc.major_collection_count diff --git a/cassandra/datadog_checks/cassandra/data/conf.yaml.example b/cassandra/datadog_checks/cassandra/data/conf.yaml.example index 79e3248c295d0..e506c4f57b1d1 100644 --- a/cassandra/datadog_checks/cassandra/data/conf.yaml.example +++ b/cassandra/datadog_checks/cassandra/data/conf.yaml.example @@ -12,7 +12,7 @@ init_config: # collect_default_metrics: true - ## @param new_gc_metrics - boolean - optional - default: False + ## @param new_gc_metrics - boolean - optional - default: false ## Set to true to use better metric names for garbage collection metrics. ## jvm.gc.cms.count => jvm.gc.minor_collection_count ## jvm.gc.major_collection_count diff --git a/confluent_platform/datadog_checks/confluent_platform/data/conf.yaml.example b/confluent_platform/datadog_checks/confluent_platform/data/conf.yaml.example index b85e64af74afb..1e8282d76c5c5 100644 --- a/confluent_platform/datadog_checks/confluent_platform/data/conf.yaml.example +++ b/confluent_platform/datadog_checks/confluent_platform/data/conf.yaml.example @@ -12,7 +12,7 @@ init_config: # collect_default_metrics: true - ## @param new_gc_metrics - boolean - optional - default: False + ## @param new_gc_metrics - boolean - optional - default: false ## Set to true to use better metric names for garbage collection metrics. ## jvm.gc.cms.count => jvm.gc.minor_collection_count ## jvm.gc.major_collection_count diff --git a/consul/datadog_checks/consul/data/conf.yaml.example b/consul/datadog_checks/consul/data/conf.yaml.example index 1db575c5b8c54..cfad71ec74322 100644 --- a/consul/datadog_checks/consul/data/conf.yaml.example +++ b/consul/datadog_checks/consul/data/conf.yaml.example @@ -52,7 +52,7 @@ instances: # - url: http://localhost:8500 - ## @param use_prometheus_endpoint - boolean - optional - default: False + ## @param use_prometheus_endpoint - boolean - optional - default: false ## Whether to use the Prometheus endpoint to get more metrics. ## The Prometheus endpoint is available for Consul versions v1.1.0 or higher. # diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/configuration/consumers/example.py b/datadog_checks_dev/datadog_checks/dev/tooling/configuration/consumers/example.py index 00f535c3ab483..198d6c0fb1697 100644 --- a/datadog_checks_dev/datadog_checks/dev/tooling/configuration/consumers/example.py +++ b/datadog_checks_dev/datadog_checks/dev/tooling/configuration/consumers/example.py @@ -114,9 +114,12 @@ def write_option(option, writer, indent='', start_list=False): if not required: if 'default' in value: default = value['default'] + default_type = type(default) if default is not None: - if type(default) is str: + if default_type is str: writer.write(' - default: ', default) + elif default_type is bool: + writer.write(' - default: ', 'true' if default else 'false') else: writer.write(' - default: ', repr(default)) else: diff --git a/hazelcast/datadog_checks/hazelcast/data/conf.yaml.example b/hazelcast/datadog_checks/hazelcast/data/conf.yaml.example index f343c044e3903..5f2ea8862f743 100644 --- a/hazelcast/datadog_checks/hazelcast/data/conf.yaml.example +++ b/hazelcast/datadog_checks/hazelcast/data/conf.yaml.example @@ -12,7 +12,7 @@ init_config: # collect_default_metrics: true - ## @param new_gc_metrics - boolean - optional - default: False + ## @param new_gc_metrics - boolean - optional - default: false ## Set to true to use better metric names for garbage collection metrics. ## jvm.gc.cms.count => jvm.gc.minor_collection_count ## jvm.gc.major_collection_count diff --git a/hive/datadog_checks/hive/data/conf.yaml.example b/hive/datadog_checks/hive/data/conf.yaml.example index 601d0362ee7a0..21ac08c9d485d 100644 --- a/hive/datadog_checks/hive/data/conf.yaml.example +++ b/hive/datadog_checks/hive/data/conf.yaml.example @@ -12,7 +12,7 @@ init_config: # collect_default_metrics: true - ## @param new_gc_metrics - boolean - optional - default: False + ## @param new_gc_metrics - boolean - optional - default: false ## Set to true to use better metric names for garbage collection metrics. ## jvm.gc.cms.count => jvm.gc.minor_collection_count ## jvm.gc.major_collection_count diff --git a/hivemq/datadog_checks/hivemq/data/conf.yaml.example b/hivemq/datadog_checks/hivemq/data/conf.yaml.example index 83b51cd57c276..e83bf275d7773 100644 --- a/hivemq/datadog_checks/hivemq/data/conf.yaml.example +++ b/hivemq/datadog_checks/hivemq/data/conf.yaml.example @@ -12,7 +12,7 @@ init_config: # collect_default_metrics: true - ## @param new_gc_metrics - boolean - optional - default: False + ## @param new_gc_metrics - boolean - optional - default: false ## Set to true to use better metric names for garbage collection metrics. ## jvm.gc.cms.count => jvm.gc.minor_collection_count ## jvm.gc.major_collection_count diff --git a/ignite/datadog_checks/ignite/data/conf.yaml.example b/ignite/datadog_checks/ignite/data/conf.yaml.example index 5319be5fbf45c..3e8256f94b811 100644 --- a/ignite/datadog_checks/ignite/data/conf.yaml.example +++ b/ignite/datadog_checks/ignite/data/conf.yaml.example @@ -12,7 +12,7 @@ init_config: # collect_default_metrics: true - ## @param new_gc_metrics - boolean - optional - default: False + ## @param new_gc_metrics - boolean - optional - default: false ## Set to true to use better metric names for garbage collection metrics. ## jvm.gc.cms.count => jvm.gc.minor_collection_count ## jvm.gc.major_collection_count diff --git a/jboss_wildfly/datadog_checks/jboss_wildfly/data/conf.yaml.example b/jboss_wildfly/datadog_checks/jboss_wildfly/data/conf.yaml.example index 600abe85d0761..69aa4ef40277a 100644 --- a/jboss_wildfly/datadog_checks/jboss_wildfly/data/conf.yaml.example +++ b/jboss_wildfly/datadog_checks/jboss_wildfly/data/conf.yaml.example @@ -12,7 +12,7 @@ init_config: # collect_default_metrics: true - ## @param new_gc_metrics - boolean - optional - default: False + ## @param new_gc_metrics - boolean - optional - default: false ## Set to true to use better metric names for garbage collection metrics. ## jvm.gc.cms.count => jvm.gc.minor_collection_count ## jvm.gc.major_collection_count diff --git a/kafka/datadog_checks/kafka/data/conf.yaml.example b/kafka/datadog_checks/kafka/data/conf.yaml.example index 082dec5f262e3..d867bec38ed86 100644 --- a/kafka/datadog_checks/kafka/data/conf.yaml.example +++ b/kafka/datadog_checks/kafka/data/conf.yaml.example @@ -12,7 +12,7 @@ init_config: # collect_default_metrics: true - ## @param new_gc_metrics - boolean - optional - default: False + ## @param new_gc_metrics - boolean - optional - default: false ## Set to true to use better metric names for garbage collection metrics. ## jvm.gc.cms.count => jvm.gc.minor_collection_count ## jvm.gc.major_collection_count diff --git a/kube_apiserver_metrics/datadog_checks/kube_apiserver_metrics/data/auto_conf.yaml b/kube_apiserver_metrics/datadog_checks/kube_apiserver_metrics/data/auto_conf.yaml index 4c895393ed556..d5c30f16afc29 100644 --- a/kube_apiserver_metrics/datadog_checks/kube_apiserver_metrics/data/auto_conf.yaml +++ b/kube_apiserver_metrics/datadog_checks/kube_apiserver_metrics/data/auto_conf.yaml @@ -30,7 +30,7 @@ instances: # # bearer_token_path: /var/run/secrets/kubernetes.io/serviceaccount/token - ## @param ssl_verify - boolean - optional - default: False + ## @param ssl_verify - boolean - optional - default: false ## Used to verify self signed certificates. # # ssl_verify: false diff --git a/kube_apiserver_metrics/datadog_checks/kube_apiserver_metrics/data/conf.yaml.example b/kube_apiserver_metrics/datadog_checks/kube_apiserver_metrics/data/conf.yaml.example index bab45212894f7..c6ac3136066d7 100644 --- a/kube_apiserver_metrics/datadog_checks/kube_apiserver_metrics/data/conf.yaml.example +++ b/kube_apiserver_metrics/datadog_checks/kube_apiserver_metrics/data/conf.yaml.example @@ -131,7 +131,7 @@ instances: # exclude_labels: # - timestamp - ## @param bearer_token_auth - boolean - optional - default: True + ## @param bearer_token_auth - boolean - optional - default: true ## If set to true, adds a bearer token authentication header. ## Note: If bearer_token_path is not set, the default path is /var/run/secrets/kubernetes.io/serviceaccount/token. # diff --git a/postgres/datadog_checks/postgres/data/conf.yaml.example b/postgres/datadog_checks/postgres/data/conf.yaml.example index 2aa2b6ebe86b5..b32d42b64fad6 100644 --- a/postgres/datadog_checks/postgres/data/conf.yaml.example +++ b/postgres/datadog_checks/postgres/data/conf.yaml.example @@ -41,7 +41,7 @@ instances: # # dbname: - ## @param ssl - string - optional - default: False + ## @param ssl - string - optional - default: false ## This option determines whether or not and with what priority a secure SSL TCP/IP connection ## is negotiated with the server. There are six modes: ## - `disable`: Only tries a non-SSL connection. diff --git a/solr/datadog_checks/solr/data/conf.yaml.example b/solr/datadog_checks/solr/data/conf.yaml.example index 9eab49f7a75d6..07b29ac370cd6 100644 --- a/solr/datadog_checks/solr/data/conf.yaml.example +++ b/solr/datadog_checks/solr/data/conf.yaml.example @@ -12,7 +12,7 @@ init_config: # collect_default_metrics: true - ## @param new_gc_metrics - boolean - optional - default: False + ## @param new_gc_metrics - boolean - optional - default: false ## Set to true to use better metric names for garbage collection metrics. ## jvm.gc.cms.count => jvm.gc.minor_collection_count ## jvm.gc.major_collection_count diff --git a/tokumx/datadog_checks/tokumx/data/conf.yaml.example b/tokumx/datadog_checks/tokumx/data/conf.yaml.example index 9a2cfd0b47f9c..ae200ba2f77e5 100644 --- a/tokumx/datadog_checks/tokumx/data/conf.yaml.example +++ b/tokumx/datadog_checks/tokumx/data/conf.yaml.example @@ -19,7 +19,7 @@ instances: # - server: mongodb://localhost:27017 - ## @param ssl - boolean - optional - default: False + ## @param ssl - boolean - optional - default: false ## Optional SSL parameters, see ## https://github.com/mongodb/mongo-python-driver/blob/2.6.3/pymongo/mongo_client.py#L193-L212 ## for more details diff --git a/tomcat/datadog_checks/tomcat/data/conf.yaml.example b/tomcat/datadog_checks/tomcat/data/conf.yaml.example index 87a888d640f0a..937e84a6c0a8c 100644 --- a/tomcat/datadog_checks/tomcat/data/conf.yaml.example +++ b/tomcat/datadog_checks/tomcat/data/conf.yaml.example @@ -12,7 +12,7 @@ init_config: # collect_default_metrics: true - ## @param new_gc_metrics - boolean - optional - default: False + ## @param new_gc_metrics - boolean - optional - default: false ## Set to true to use better metric names for garbage collection metrics. ## jvm.gc.cms.count => jvm.gc.minor_collection_count ## jvm.gc.major_collection_count