File tree Expand file tree Collapse file tree
datadog_checks/dev/tooling/templates
integration/check/{check_name}
tests/tooling/configuration/consumers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 display_default : false
99 example : true
1010 hidden : true
11+ - name : metric_patterns
12+ description : |
13+ A mapping of metrics to include or exclude, with each entry being a regular expression.
14+
15+ Metrics defined in `exclude` will take precedence in case of overlap.
16+ value :
17+ example :
18+ include :
19+ - <INCLUDE_REGEX>
20+ exclude :
21+ - <EXCLUDE_REGEX>
22+ type : object
23+ properties :
24+ - name : include
25+ type : array
26+ items :
27+ type : string
28+ - name : exclude
29+ type : array
30+ items :
31+ type : string
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ classifiers = [
2929 " Topic :: System :: Monitoring" ,
3030]
3131dependencies = [
32- " datadog-checks-base>=11.2 .0" ,
32+ " datadog-checks-base>=25.1 .0" ,
3333]
3434dynamic = [
3535 " version" ,
Original file line number Diff line number Diff line change @@ -1099,6 +1099,17 @@ def test_template_recursion():
10991099 ## This is useful for cluster-level checks.
11001100 #
11011101 # empty_default_hostname: false
1102+
1103+ ## @param metric_patterns - mapping - optional
1104+ ## A mapping of metrics to include or exclude, with each entry being a regular expression.
1105+ ##
1106+ ## Metrics defined in `exclude` will take precedence in case of overlap.
1107+ #
1108+ # metric_patterns:
1109+ # include:
1110+ # - <INCLUDE_REGEX>
1111+ # exclude:
1112+ # - <EXCLUDE_REGEX>
11021113 """
11031114 )
11041115
You can’t perform that action at this time.
0 commit comments