Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cassandra/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ files:
- template: instances
options:
- name: cassandra_aliasing
display_priority: 1
description: |
Must be set to true to comply with CASSANDRA-4009.
Learn more: https://issues.apache.org/jira/browse/CASSANDRA-4009
Expand Down
1 change: 1 addition & 0 deletions cassandra/changelog.d/23274.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Re-order configuration fields based on real-world usage data.
14 changes: 7 additions & 7 deletions cassandra/datadog_checks/cassandra/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,22 @@ init_config:
#
instances:

## @param cassandra_aliasing - boolean - required
## Must be set to true to comply with CASSANDRA-4009.
## Learn more: https://issues.apache.org/jira/browse/CASSANDRA-4009
#
- cassandra_aliasing: true

## @param host - string - required
## JMX hostname to connect to.
#
- host: localhost
host: localhost

## @param port - integer - required
## JMX port to connect to.
#
port: 7199

## @param cassandra_aliasing - boolean - required
## Must be set to true to comply with CASSANDRA-4009.
## Learn more: https://issues.apache.org/jira/browse/CASSANDRA-4009
#
cassandra_aliasing: true

## @param user - string - optional
## User to use when connecting to JMX.
#
Expand Down
95 changes: 56 additions & 39 deletions elastic/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ files:
- template: instances
options:
- name: url
display_priority: 7
fleet_configurable: true
required: true
description: |
Expand All @@ -19,88 +20,98 @@ files:
value:
example: http://localhost:9200
type: string
- name: node_name_as_host
- name: pshard_stats
display_priority: 6
description: |
If each machine only runs a single Elasticsearch node per cluster, you
want to set each Elasticsearch `node.name` to the machine hostname. You may
then set `node_name_as_host` to `true` to avoid duplicate hostnames.
See: https://www.elastic.co/guide/en/elasticsearch/reference/current/node.name.html
If you enable the `pshard_stats` flag, statistics over primary shards
are collected by the check and sent to the backend with the
`elasticsearch.primary` prefix. It is particularly useful if you want to
get certain metrics without taking replicas into account. For instance,
`elasticsearch.primaries.docs.count` gives you the total number of
documents in your indexes WITHOUT counting duplicates due to the existence
of replica shards in your ES cluster.
fleet_configurable: true
value:
type: boolean
example: false
- name: cluster_stats
description: |
If your cluster is hosted externally (i.e., you're not pointing to localhost),
you must set `cluster_stats` to true, otherwise the check only
submits metrics of the local node.
This parameter was also called `is_external` and you can still use it but it
is removed in Agent version 6+.
- name: index_stats
display_priority: 5
description: Set `index_stats` to true to collect metrics for individual indices.
fleet_configurable: true
value:
type: boolean
example: false
- name: detailed_index_stats
- name: pending_task_stats
display_priority: 4
description: |
If you want to obtain index-specific stats, use this flag with `cluster_stats` and `pshard_stats` set to true.
Without this flag you only get stats from `_all`.
Do not use it if you are pointing to localhost.
Specifies whether to collect data exposed by the `pending_tasks` cluster endpoint.
Ref: https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-pending.html
Some managed Elasticsearch services (e.g., AWS Elasticsearch) do not expose this endpoint.
Set `pending_task_stats` to false if you use such a service.
fleet_configurable: true
value:
type: boolean
example: false
- name: index_stats
description: Set `index_stats` to true to collect metrics for individual indices.
example: true
- name: cluster_stats
display_priority: 3
description: |
If your cluster is hosted externally (i.e., you're not pointing to localhost),
you must set `cluster_stats` to true, otherwise the check only
submits metrics of the local node.
This parameter was also called `is_external` and you can still use it but it
is removed in Agent version 6+.
fleet_configurable: true
value:
type: boolean
example: false
- name: pshard_stats
- name: cat_allocation_stats
display_priority: 2
description: |
If you enable the `pshard_stats` flag, statistics over primary shards
are collected by the check and sent to the backend with the
`elasticsearch.primary` prefix. It is particularly useful if you want to
get certain metrics without taking replicas into account. For instance,
`elasticsearch.primaries.docs.count` gives you the total number of
documents in your indexes WITHOUT counting duplicates due to the existence
of replica shards in your ES cluster.
Enable to collect Elastic Cat Allocation metrics. Available only for Elasticsearch 5.0 or higher.
Ref: https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-allocation.html.
fleet_configurable: true
value:
type: boolean
example: false
- name: slm_stats
display_priority: 1
description: |
Set `slm_stats` to true to collect statistics about Snapshot Lifecycle Management.
The user must have the `read_slm` cluster privilege to get these metrics.
fleet_configurable: true
value:
type: boolean
example: false
- name: pshard_graceful_timeout
description: Continue gracefully if pshard stats timeout.
- name: node_name_as_host
display_priority: 0
description: |
If each machine only runs a single Elasticsearch node per cluster, you
want to set each Elasticsearch `node.name` to the machine hostname. You may
then set `node_name_as_host` to `true` to avoid duplicate hostnames.
See: https://www.elastic.co/guide/en/elasticsearch/reference/current/node.name.html
fleet_configurable: true
value:
type: boolean
example: false
- name: pending_task_stats
- name: detailed_index_stats
display_priority: 0
description: |
Specifies whether to collect data exposed by the `pending_tasks` cluster endpoint.
Ref: https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-pending.html
Some managed Elasticsearch services (e.g., AWS Elasticsearch) do not expose this endpoint.
Set `pending_task_stats` to false if you use such a service.
If you want to obtain index-specific stats, use this flag with `cluster_stats` and `pshard_stats` set to true.
Without this flag you only get stats from `_all`.
Do not use it if you are pointing to localhost.
fleet_configurable: true
value:
type: boolean
example: true
- name: cat_allocation_stats
description: |
Enable to collect Elastic Cat Allocation metrics. Available only for Elasticsearch 5.0 or higher.
Ref: https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-allocation.html.
example: false
- name: pshard_graceful_timeout
display_priority: 0
description: Continue gracefully if pshard stats timeout.
fleet_configurable: true
value:
type: boolean
example: false
- name: detailed_shard_metrics
display_priority: 0
description: |
Enable to collect detailed shard placement metrics with `index_name` and `prirep` (primary/replica) tags.
Requires `cat_allocation_stats` to be enabled.
Expand All @@ -112,6 +123,7 @@ files:
type: boolean
example: false
- name: admin_forwarder
display_priority: 0
description: |
Specifies a URL that includes a context root
needed for a forwarder application to access Elasticsearch REST services, for example:
Expand All @@ -121,6 +133,7 @@ files:
type: boolean
example: false
- name: gc_collectors_as_rate
display_priority: 0
description: |
Submit `jvm.gc.collectors` metrics as rate.
Note: Only for ES versions 0.9.10 or higher.
Expand All @@ -129,6 +142,7 @@ files:
type: boolean
example: false
- name: disable_legacy_cluster_tag
display_priority: 0
description: Enable to stop submitting the tag `cluster_name`, which has been renamed to `elastic_cluster`.
fleet_configurable: true
value:
Expand All @@ -137,6 +151,7 @@ files:
example: true
enabled: false
- name: disable_legacy_service_check_tags
display_priority: 0
description: |
Disable the submission of the Elasticsearch `host` and `port` as tags in service checks.
Submit them as `url` instead.
Expand All @@ -147,6 +162,7 @@ files:
example: true
enabled: true
- name: custom_queries
display_priority: 0
description: |
Run custom queries for Elasticsearch. Each custom query endpoint can collect multiple metrics and tags.
Note: Each custom query requires an `endpoint`, `data_path`, and `columns` parameter. Each `columns` parameter
Expand Down Expand Up @@ -220,6 +236,7 @@ files:
items:
type: string
- name: submit_events
display_priority: 0
description: |
By default we submit events to Datadog if the cluster starts unhealthy or anytime its health changes.
You can set this option to `false` to disable submitting the events in case you already implemented
Expand Down
1 change: 1 addition & 0 deletions elastic/changelog.d/23278.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Re-order configuration fields based on real-world usage data.
76 changes: 38 additions & 38 deletions elastic/datadog_checks/elastic/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -51,35 +51,6 @@ instances:
#
- url: http://localhost:9200

## @param node_name_as_host - boolean - optional - default: false
## If each machine only runs a single Elasticsearch node per cluster, you
## want to set each Elasticsearch `node.name` to the machine hostname. You may
## then set `node_name_as_host` to `true` to avoid duplicate hostnames.
## See: https://www.elastic.co/guide/en/elasticsearch/reference/current/node.name.html
#
# node_name_as_host: false

## @param cluster_stats - boolean - optional - default: false
## If your cluster is hosted externally (i.e., you're not pointing to localhost),
## you must set `cluster_stats` to true, otherwise the check only
## submits metrics of the local node.
## This parameter was also called `is_external` and you can still use it but it
## is removed in Agent version 6+.
#
# cluster_stats: false

## @param detailed_index_stats - boolean - optional - default: false
## If you want to obtain index-specific stats, use this flag with `cluster_stats` and `pshard_stats` set to true.
## Without this flag you only get stats from `_all`.
## Do not use it if you are pointing to localhost.
#
# detailed_index_stats: false

## @param index_stats - boolean - optional - default: false
## Set `index_stats` to true to collect metrics for individual indices.
#
# index_stats: false

## @param pshard_stats - boolean - optional - default: false
## If you enable the `pshard_stats` flag, statistics over primary shards
## are collected by the check and sent to the backend with the
Expand All @@ -91,16 +62,10 @@ instances:
#
# pshard_stats: false

## @param slm_stats - boolean - optional - default: false
## Set `slm_stats` to true to collect statistics about Snapshot Lifecycle Management.
## The user must have the `read_slm` cluster privilege to get these metrics.
#
# slm_stats: false

## @param pshard_graceful_timeout - boolean - optional - default: false
## Continue gracefully if pshard stats timeout.
## @param index_stats - boolean - optional - default: false
## Set `index_stats` to true to collect metrics for individual indices.
#
# pshard_graceful_timeout: false
# index_stats: false

## @param pending_task_stats - boolean - optional - default: true
## Specifies whether to collect data exposed by the `pending_tasks` cluster endpoint.
Expand All @@ -110,12 +75,47 @@ instances:
#
# pending_task_stats: true

## @param cluster_stats - boolean - optional - default: false
## If your cluster is hosted externally (i.e., you're not pointing to localhost),
## you must set `cluster_stats` to true, otherwise the check only
## submits metrics of the local node.
## This parameter was also called `is_external` and you can still use it but it
## is removed in Agent version 6+.
#
# cluster_stats: false

## @param cat_allocation_stats - boolean - optional - default: false
## Enable to collect Elastic Cat Allocation metrics. Available only for Elasticsearch 5.0 or higher.
## Ref: https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-allocation.html.
#
# cat_allocation_stats: false

## @param slm_stats - boolean - optional - default: false
## Set `slm_stats` to true to collect statistics about Snapshot Lifecycle Management.
## The user must have the `read_slm` cluster privilege to get these metrics.
#
# slm_stats: false

## @param node_name_as_host - boolean - optional - default: false
## If each machine only runs a single Elasticsearch node per cluster, you
## want to set each Elasticsearch `node.name` to the machine hostname. You may
## then set `node_name_as_host` to `true` to avoid duplicate hostnames.
## See: https://www.elastic.co/guide/en/elasticsearch/reference/current/node.name.html
#
# node_name_as_host: false

## @param detailed_index_stats - boolean - optional - default: false
## If you want to obtain index-specific stats, use this flag with `cluster_stats` and `pshard_stats` set to true.
## Without this flag you only get stats from `_all`.
## Do not use it if you are pointing to localhost.
#
# detailed_index_stats: false

## @param pshard_graceful_timeout - boolean - optional - default: false
## Continue gracefully if pshard stats timeout.
#
# pshard_graceful_timeout: false

## @param detailed_shard_metrics - boolean - optional - default: false
## Enable to collect detailed shard placement metrics with `index_name` and `prirep` (primary/replica) tags.
## Requires `cat_allocation_stats` to be enabled.
Expand Down
3 changes: 3 additions & 0 deletions gunicorn/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ files:
- template: init_config
options:
- name: gunicorn
display_priority: 0
description: |
Command or path to gunicorn (e.g. `/usr/local/bin/gunicorn` or `docker exec container gunicorn`)
can be overwritten on an instance
Expand All @@ -16,6 +17,7 @@ files:
- template: instances
options:
- name: proc_name
display_priority: 1
required: true
description: |
The name of the gunicorn process. For the following gunicorn server:
Expand All @@ -27,6 +29,7 @@ files:
type: string
fleet_configurable: true
- name: gunicorn
display_priority: 0
description: Command or path to gunicorn (e.g. `/usr/local/bin/gunicorn` or `docker exec container gunicorn`)
value:
type: string
Expand Down
Loading
Loading