Skip to content

Commit 6e4dfd6

Browse files
authored
Add legacy field in spec (#22333)
* add legacy field in spec * more legacy fields * changelog * add legacy to allowlist
1 parent 8c766cb commit 6e4dfd6

File tree

8 files changed

+41
-0
lines changed

8 files changed

+41
-0
lines changed

aerospike/assets/configuration/spec.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ files:
77
- template: init_config/openmetrics
88
- name: mappings
99
hidden: true
10+
legacy: true
1011
description: |
1112
Rate mappings. DO NOT EDIT unless you know what you're doing.
1213
See https://github.com/aerospike-community/aerospike-collectd/blob/master/aerospike_schema.yaml
@@ -371,18 +372,21 @@ files:
371372
openmetrics_endpoint.value.example: http://127.0.0.1:9145/metrics
372373
- name: host
373374
hidden: true
375+
legacy: true
374376
description: Aerospike host to connect to.
375377
value:
376378
type: string
377379
example: localhost
378380
- name: port
379381
hidden: true
382+
legacy: true
380383
description: Aerospike port to connect to.
381384
value:
382385
type: integer
383386
example: 3000
384387
- name: tls_name
385388
hidden: true
389+
legacy: true
386390
value:
387391
type: string
388392
description: |
@@ -392,6 +396,7 @@ files:
392396
Note: TLS usage requires Aerospike Enterprise Edition
393397
- name: tls_config
394398
hidden: true
399+
legacy: true
395400
description: |
396401
Note TLS usage requires Aerospike Enterprise Edition
397402
Key value pairs with a choice of the following elements:
@@ -414,6 +419,7 @@ files:
414419
keyfile: <KEY_FILE>
415420
- name: metrics
416421
hidden: true
422+
legacy: true
417423
description: |
418424
All metrics collected by default. You probably don't want to do this,
419425
so list the ones you do want here. Check with:
@@ -427,6 +433,7 @@ files:
427433
- migrate_tx_objs
428434
- name: namespaces
429435
hidden: true
436+
legacy: true
430437
description: All namespaces are collected by default. If you want to collect specific namespaces specify them here.
431438
value:
432439
type: array
@@ -437,6 +444,7 @@ files:
437444
- another_example_namespace
438445
- name: datacenters
439446
hidden: true
447+
legacy: true
440448
description: |
441449
For Aerospike v4 or lower, all datacenters are collected by default.
442450
If you want to collect specific datacenters specify them here.
@@ -451,6 +459,7 @@ files:
451459
- another_example_datacenter
452460
- name: namespace_metrics
453461
hidden: true
462+
legacy: true
454463
description: |
455464
All Namespace metrics collected by default. You probably don't want to do this,
456465
so list the ones you do want here. Check with:
@@ -471,6 +480,7 @@ files:
471480
- migrate-tx-partitions-remaining
472481
- name: datacenter_metrics
473482
hidden: true
483+
legacy: true
474484
description: |
475485
All datacenter metrics collected by default. Specify which metrics you want here.
476486
List datacenters using this command:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add legacy field in spec for legacy options

datadog_checks_dev/datadog_checks/dev/tooling/configuration/consumers/example.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
'hidden',
1515
'display_priority',
1616
'deprecation',
17+
'legacy',
1718
'multiple',
1819
'multiple_instances_defined',
1920
'metadata_tags',

datadog_checks_dev/datadog_checks/dev/tooling/templates/configuration/instances/pdh_legacy.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
- name: host
2+
legacy: true
23
required: false
34
description: |
45
The host the current check connects to.
@@ -7,16 +8,19 @@
78
example: .
89
type: string
910
- name: username
11+
legacy: true
1012
required: false
1113
description: The username from the credentials needed to connect to the host.
1214
value:
1315
type: string
1416
- name: password
17+
legacy: true
1518
required: false
1619
description: The password from the credentials needed to connect to the host.
1720
value:
1821
type: string
1922
- name: additional_metrics
23+
legacy: true
2024
required: false
2125
description: |
2226
The additional metrics is a list of items that represent additional counters to collect.
@@ -43,6 +47,7 @@
4347
items:
4448
type: string
4549
- name: counter_data_types
50+
legacy: true
4651
required: false
4752
description: |
4853
counter_data_types is a list of <METRIC_NAME>,<DATA_TYPE> elements that

envoy/assets/configuration/spec.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ files:
1515
openmetrics_endpoint.required: false
1616
openmetrics_endpoint.enabled: true
1717
- name: stats_url
18+
legacy: true
1819
display_priority: 1
1920
description: |
2021
The check will collect and parse metrics from the admin /stats/ endpoint.
@@ -31,6 +32,7 @@ files:
3132
type: string
3233
- name: included_metrics
3334
hidden: true
35+
legacy: true
3436
description: |
3537
Includes metrics using regular expressions.
3638
The filtering occurs before tag extraction, so you have the option
@@ -49,6 +51,7 @@ files:
4951
- cluster\.(in|out)\..*
5052
- name: excluded_metrics
5153
hidden: true
54+
legacy: true
5255
description: |
5356
Excludes metrics using regular expressions.
5457
The filtering occurs before tag extraction, so you have the option
@@ -67,6 +70,7 @@ files:
6770
- ^http\..*
6871
- name: cache_metrics
6972
hidden: true
73+
legacy: true
7074
description: |
7175
Results are cached by default to decrease CPU utilization, at
7276
the expense of some memory. Disable by setting this to false.
@@ -75,13 +79,15 @@ files:
7579
example: true
7680
- name: parse_unknown_metrics
7781
hidden: true
82+
legacy: true
7883
description: |
7984
Attempt parsing of metrics that are unknown and will otherwise be skipped.
8085
value:
8186
type: boolean
8287
example: false
8388
- name: collect_server_info
8489
hidden: true
90+
legacy: true
8591
description: |
8692
Collect Envoy version by accessing the `/server_info` endpoint.
8793
Disable this if this endpoint is not reachable by the agent.
@@ -90,6 +96,7 @@ files:
9096
example: true
9197
- name: disable_legacy_cluster_tag
9298
hidden: true
99+
legacy: true
93100
description: |
94101
Enable to stop submitting the tags `cluster_name` and `virtual_cluster_name`,
95102
which has been renamed to `envoy_cluster` and `virtual_envoy_cluster`.

gitlab/assets/configuration/spec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ files:
2727
description: |
2828
Deprecated alias for `prometheus_url`.
2929
hidden: true
30+
legacy: true
3031
value:
3132
type: string
3233
- name: gitaly_server_endpoint

haproxy/assets/configuration/spec.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ files:
3939
prometheus_url.required: false
4040
- name: url
4141
enabled: true
42+
legacy: true
4243
value:
4344
example: http://localhost/admin?stats
4445
type: string
@@ -50,6 +51,7 @@ files:
5051
5152
NOTE: This only takes effect when `use_openmetrics` is set to `false`.
5253
- name: status_check
54+
legacy: true
5355
value:
5456
example: false
5557
type: boolean
@@ -60,6 +62,7 @@ files:
6062
6163
NOTE: This only takes effect when `use_openmetrics` is set to `false`.
6264
- name: collect_aggregates_only
65+
legacy: true
6366
value:
6467
anyOf:
6568
- type: boolean
@@ -76,6 +79,7 @@ files:
7679
7780
NOTE: This only takes effect when `use_openmetrics` is set to `false`.
7881
- name: collect_status_metrics
82+
legacy: true
7983
value:
8084
example: false
8185
type: boolean
@@ -84,6 +88,7 @@ files:
8488
8589
NOTE: This only takes effect when `use_openmetrics` is set to `false`.
8690
- name: collect_status_metrics_by_host
91+
legacy: true
8792
value:
8893
example: false
8994
type: boolean
@@ -93,6 +98,7 @@ files:
9398
9499
NOTE: This only takes effect when `use_openmetrics` is set to `false`.
95100
- name: collate_status_tags_per_host
101+
legacy: true
96102
value:
97103
example: true
98104
type: boolean
@@ -102,6 +108,7 @@ files:
102108
103109
NOTE: This only takes effect when `use_openmetrics` is set to `false`.
104110
- name: count_status_by_service
111+
legacy: true
105112
value:
106113
example: true
107114
type: boolean
@@ -111,6 +118,7 @@ files:
111118
112119
NOTE: This only takes effect when `use_openmetrics` is set to `false`.
113120
- name: tag_service_check_by_host
121+
legacy: true
114122
value:
115123
example: false
116124
type: boolean
@@ -120,6 +128,7 @@ files:
120128
121129
NOTE: This only takes effect when `use_openmetrics` is set to `false`.
122130
- name: services_include
131+
legacy: true
123132
value:
124133
example:
125134
- <SERVICE_NAME_1>
@@ -133,6 +142,7 @@ files:
133142
134143
NOTE: This only takes effect when `use_openmetrics` is set to `false`.
135144
- name: services_exclude
145+
legacy: true
136146
value:
137147
example:
138148
- .*
@@ -145,6 +155,7 @@ files:
145155
146156
NOTE: This only takes effect when `use_openmetrics` is set to `false`.
147157
- name: disable_legacy_service_tag
158+
legacy: true
148159
value:
149160
example: false
150161
type: boolean
@@ -154,6 +165,7 @@ files:
154165
155166
NOTE: This only takes effect when `use_openmetrics` is set to `false`.
156167
- name: active_tag
168+
legacy: true
157169
value:
158170
example: false
159171
type: boolean
@@ -163,12 +175,14 @@ files:
163175
164176
NOTE: This only takes effect when `use_openmetrics` is set to `false`.
165177
- name: enable_service_check
178+
legacy: true
166179
value:
167180
example: false
168181
type: boolean
169182
description: |
170183
Enable the Haproxy service check.
171184
- name: tags_regex
185+
legacy: true
172186
value:
173187
type: string
174188
description: |
@@ -182,6 +196,7 @@ files:
182196
183197
NOTE: This only takes effect when `use_openmetrics` is set to `false`.
184198
- name: startup_grace_seconds
199+
legacy: true
185200
value:
186201
example: 0
187202
type: number

kong/assets/configuration/spec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ files:
1717
extra_metrics.value.example:
1818
- kong_memory_workers_lua_vms_bytes: memory.workers.lua.vms.bytes
1919
- name: kong_status_url
20+
legacy: true
2021
fleet_configurable: true
2122
display_priority: 1
2223
description: |

0 commit comments

Comments
 (0)