Skip to content

Commit c5def73

Browse files
Grammar fixes in the config files (#21756)
* fix grammar in config * changelog * Update consul/assets/configuration/spec.yaml Co-authored-by: Brett Blue <[email protected]> * Update consul/datadog_checks/consul/data/conf.yaml.example Co-authored-by: Brett Blue <[email protected]> --------- Co-authored-by: Brett Blue <[email protected]>
1 parent 2b0cf18 commit c5def73

File tree

3 files changed

+37
-38
lines changed

3 files changed

+37
-38
lines changed

consul/assets/configuration/spec.yaml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ files:
1212
display_priority: 2
1313
required: true
1414
description: |
15-
Where your Consul HTTP server lives,
16-
point the URL at the leader to get metrics about your Consul cluster.
17-
Use HTTPS instead of HTTP if your Consul setup is configured to do so.
15+
The URL of your Consul HTTP server. Point it at the leader to get metrics
16+
about your Consul cluster. Use HTTPS if your Consul setup supports it.
1817
value:
1918
type: string
2019
example: http://localhost:8500
@@ -32,8 +31,8 @@ files:
3231
example: false
3332
- name: network_latency_checks
3433
description: |
35-
Whether to enable network latency metrics collection. When enabled
36-
Consul network coordinates is retrieved and latency calculated for
34+
Whether to enable network latency metric collection. When enabled, Consul
35+
network coordinates are retrieved and latency is calculated for
3736
each node and between data centers.
3837
See https://www.consul.io/docs/internals/coordinates.html
3938
value:
@@ -52,11 +51,11 @@ files:
5251

5352
- name: self_leader_check
5453
description: |
55-
Whether to enable self leader checks. Each instance with this enabled
56-
watches for itself to become the leader and emits an event when that
57-
happens. It is safe/expected to enable this on all nodes in a Consul
58-
cluster since only the new leader emits the (single) event. This
59-
flag takes precedence over new_leader_checks.
54+
Whether to enable self-leader checks. Each enabled instance watches for
55+
when it becomes the leader and emits an event when that happens. It is
56+
safe and expected to enable this on all nodes in a Consul cluster since
57+
only the new leader emits the event. This flag takes precedence over
58+
new_leader_checks.
6059
value:
6160
type: boolean
6261
example: false
@@ -69,27 +68,27 @@ files:
6968

7069
- name: single_node_install
7170
description: |
72-
Whether or not to perform the full check even when not the leader. Useful
73-
if you don't want to install the Agent on every node in a data center.
71+
Whether to perform the full check even when this node is not the leader.
72+
Useful if you don't want to install the Agent on every node in a data center.
7473
value:
7574
type: boolean
7675
example: false
7776

7877
- name: new_leader_checks
7978
description: |
80-
Whether to enable new leader checks from this instance
81-
Note: If this is set on multiple instances or Agents in the same cluster
82-
you receive one event per leader change per instance. See
79+
Whether to enable new-leader checks from this instance.
80+
Note: If this is set on multiple instances or Agents in the same cluster,
81+
you will receive one event per leader change per instance. See
8382
self_leader_check for a more robust option.
8483
value:
8584
type: boolean
8685
example: false
8786

8887
- name: services_include
8988
description: |
90-
Services to restrict catalog querying to
91-
the default settings query up to 50 services. If you have more than
92-
services in your Consul service catalog, use this include list.
89+
Services to which catalog querying is restricted. By default, the check
90+
queries up to 50 services. If you have more than 50 services in your
91+
Consul service catalog, use this include list.
9392
value:
9493
type: array
9594
items:
@@ -120,7 +119,7 @@ files:
120119

121120
- name: threads_count
122121
description: |
123-
Increase the number of threads to collect consul services checks.
122+
Increase the number of threads used to collect Consul service checks.
124123
value:
125124
type: number
126125
example: 1

consul/changelog.d/21756.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Grammar fixes in the config files

consul/datadog_checks/consul/data/conf.yaml.example

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ init_config:
4646
instances:
4747

4848
## @param url - string - required
49-
## Where your Consul HTTP server lives,
50-
## point the URL at the leader to get metrics about your Consul cluster.
51-
## Use HTTPS instead of HTTP if your Consul setup is configured to do so.
49+
## The URL of your Consul HTTP server. Point it at the leader to get metrics
50+
## about your Consul cluster. Use HTTPS if your Consul setup supports it.
5251
#
5352
- url: http://localhost:8500
5453

@@ -70,8 +69,8 @@ instances:
7069
# catalog_checks: false
7170

7271
## @param network_latency_checks - boolean - optional - default: false
73-
## Whether to enable network latency metrics collection. When enabled
74-
## Consul network coordinates is retrieved and latency calculated for
72+
## Whether to enable network latency metric collection. When enabled, Consul
73+
## network coordinates are retrieved and latency is calculated for
7574
## each node and between data centers.
7675
## See https://www.consul.io/docs/internals/coordinates.html
7776
#
@@ -87,11 +86,11 @@ instances:
8786
# use_node_name_as_hostname: true
8887

8988
## @param self_leader_check - boolean - optional - default: false
90-
## Whether to enable self leader checks. Each instance with this enabled
91-
## watches for itself to become the leader and emits an event when that
92-
## happens. It is safe/expected to enable this on all nodes in a Consul
93-
## cluster since only the new leader emits the (single) event. This
94-
## flag takes precedence over new_leader_checks.
89+
## Whether to enable self-leader checks. Each enabled instance watches for
90+
## when it becomes the leader and emits an event when that happens. It is
91+
## safe and expected to enable this on all nodes in a Consul cluster since
92+
## only the new leader emits the event. This flag takes precedence over
93+
## new_leader_checks.
9594
#
9695
# self_leader_check: false
9796

@@ -101,23 +100,23 @@ instances:
101100
# acl_token: <ACL_TOKEN>
102101

103102
## @param single_node_install - boolean - optional - default: false
104-
## Whether or not to perform the full check even when not the leader. Useful
105-
## if you don't want to install the Agent on every node in a data center.
103+
## Whether to perform the full check even when this node is not the leader.
104+
## Useful if you don't want to install the Agent on every node in a data center.
106105
#
107106
# single_node_install: false
108107

109108
## @param new_leader_checks - boolean - optional - default: false
110-
## Whether to enable new leader checks from this instance
111-
## Note: If this is set on multiple instances or Agents in the same cluster
112-
## you receive one event per leader change per instance. See
109+
## Whether to enable new-leader checks from this instance.
110+
## Note: If this is set on multiple instances or Agents in the same cluster,
111+
## you will receive one event per leader change per instance. See
113112
## self_leader_check for a more robust option.
114113
#
115114
# new_leader_checks: false
116115

117116
## @param services_include - list of strings - optional
118-
## Services to restrict catalog querying to
119-
## the default settings query up to 50 services. If you have more than
120-
## services in your Consul service catalog, use this include list.
117+
## Services to which catalog querying is restricted. By default, the check
118+
## queries up to 50 services. If you have more than 50 services in your
119+
## Consul service catalog, use this include list.
121120
#
122121
# services_include:
123122
# - <SERVICE_1>
@@ -138,7 +137,7 @@ instances:
138137
# max_services: 50
139138

140139
## @param threads_count - number - optional - default: 1
141-
## Increase the number of threads to collect consul services checks.
140+
## Increase the number of threads used to collect Consul service checks.
142141
#
143142
# threads_count: 1
144143

0 commit comments

Comments
 (0)