Skip to content

Commit c86bb24

Browse files
authored
[NDM][NDMII-2557]update the config template for collect_topology (#17407)
* update the config template for collect_topology * update the config template for collect_topology * change spec.yaml
1 parent 180ba05 commit c86bb24

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

snmp/assets/configuration/spec.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,13 @@ files:
461461
value:
462462
type: boolean
463463
example: true
464+
- name: collect_topology
465+
description: Enable the collection of topology (LLDP/CDP) data
466+
value:
467+
type: boolean
468+
example: true
469+
display_default: true
470+
464471
- name: interface_configs
465472
description: |
466473
This option is used to override interface inbound/outbound speed and add interface tags.
@@ -552,3 +559,4 @@ files:
552559
- template: instances/default
553560
overrides:
554561
service.hidden: true
562+
metric_patterns.hidden: true

snmp/datadog_checks/snmp/data/conf.yaml.example

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,11 @@ instances:
364364
#
365365
# refresh_oids_cache_interval: 3600
366366

367+
## @param collect_topology - boolean - optional - default: true
368+
## Enable the collection of topology (LLDP/CDP) data
369+
#
370+
# collect_topology: true
371+
367372
## @param interface_configs - list of mappings - optional
368373
## This option is used to override interface inbound/outbound speed and add interface tags.
369374
## Example:
@@ -467,14 +472,3 @@ instances:
467472
## This is useful for cluster-level checks.
468473
#
469474
# empty_default_hostname: false
470-
471-
## @param metric_patterns - mapping - optional
472-
## A mapping of metrics to include or exclude, with each entry being a regular expression.
473-
##
474-
## Metrics defined in `exclude` will take precedence in case of overlap.
475-
#
476-
# metric_patterns:
477-
# include:
478-
# - <INCLUDE_REGEX>
479-
# exclude:
480-
# - <EXCLUDE_REGEX>

0 commit comments

Comments
 (0)