Skip to content

Commit 8770176

Browse files
authored
[FA] Set display_priority in apache spec.yaml (DataDog#23277)
* Set display_priority in apache spec.yaml based on field usage * Reorder fields in apache spec.yaml by display_priority * Remove accidental redisdb spec.yaml from apache branch * Update display_priority in apache spec.yaml based on field usage * Add conf.yaml.example and changelog entry
1 parent 1f92726 commit 8770176

3 files changed

Lines changed: 25 additions & 20 deletions

File tree

apache/assets/configuration/spec.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ files:
1212
- name: apache_status_url
1313
fleet_configurable: true
1414
required: true
15-
display_priority: 2
15+
display_priority: 4
1616
description: Status URL of your Apache server.
1717
formats: ["url"]
1818
value:
1919
example: http://localhost/server-status?auto
2020
type: string
2121
- template: instances/http
22+
overrides:
23+
persist_connections.display_priority: 2
24+
tls_verify.display_priority: 1
2225
- template: instances/default
2326
overrides:
2427
disable_generic_tags.display_priority: 1
@@ -27,6 +30,7 @@ files:
2730
disable_generic_tags.description: |
2831
Generic tags such as `host` will be replaced by `apache_host` to prevent
2932
mixing them up with tags from other integrations. Datadog recommends setting this to `true` to avoid confusion.
33+
tags.display_priority: 3
3034
- template: logs
3135
example:
3236
- type: file

apache/changelog.d/23277.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Re-order configuration fields by usage frequency.

apache/datadog_checks/apache/data/conf.yaml.example

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,25 @@ instances:
5050
#
5151
- apache_status_url: http://localhost/server-status?auto
5252

53+
## @param tags - list of strings - optional
54+
## A list of tags to attach to every metric and service check emitted by this instance.
55+
##
56+
## Learn more about tagging at https://docs.datadoghq.com/tagging
57+
#
58+
# tags:
59+
# - <KEY_1>:<VALUE_1>
60+
# - <KEY_2>:<VALUE_2>
61+
62+
## @param persist_connections - boolean - optional - default: false
63+
## Whether or not to persist cookies and use connection pooling for improved performance.
64+
#
65+
# persist_connections: false
66+
67+
## @param tls_verify - boolean - optional - default: true
68+
## Instructs the check to validate the TLS certificate of services.
69+
#
70+
# tls_verify: true
71+
5372
## @param disable_generic_tags - boolean - optional - default: false
5473
## Generic tags such as `host` will be replaced by `apache_host` to prevent
5574
## mixing them up with tags from other integrations. Datadog recommends setting this to `true` to avoid confusion.
@@ -261,11 +280,6 @@ instances:
261280
#
262281
# aws_service: <AWS_SERVICE>
263282

264-
## @param tls_verify - boolean - optional - default: true
265-
## Instructs the check to validate the TLS certificate of services.
266-
#
267-
# tls_verify: true
268-
269283
## @param tls_use_host_header - boolean - optional - default: false
270284
## If a `Host` header is set, this enables its use for SNI (matching against the TLS certificate CN or SAN).
271285
#
@@ -367,25 +381,11 @@ instances:
367381
#
368382
# log_requests: false
369383

370-
## @param persist_connections - boolean - optional - default: false
371-
## Whether or not to persist cookies and use connection pooling for improved performance.
372-
#
373-
# persist_connections: false
374-
375384
## @param allow_redirects - boolean - optional - default: true
376385
## Whether or not to allow URL redirection.
377386
#
378387
# allow_redirects: true
379388

380-
## @param tags - list of strings - optional
381-
## A list of tags to attach to every metric and service check emitted by this instance.
382-
##
383-
## Learn more about tagging at https://docs.datadoghq.com/tagging
384-
#
385-
# tags:
386-
# - <KEY_1>:<VALUE_1>
387-
# - <KEY_2>:<VALUE_2>
388-
389389
## @param service - string - optional
390390
## Attach the tag `service:<SERVICE>` to every metric, event, and service check emitted by this integration.
391391
##

0 commit comments

Comments
 (0)