@cryptotaxi247 / netdata / commits / 8cabe9511

Fix documentation regarding header_match (#20652)

Tobias Richter committed Jul 11, 2025 at 09:30 UTC 8cabe95111b7cb62335ae4efc44e7f80834f182d
1 file changed +5 -5
src/go/plugin/go.d/collector/httpcheck/metadata.yaml
+5 -5
@@ -33,7 +33,7 @@ modules:
33 | redirect | Received a redirect response (3xx status code) while `not_follow_redirects` is configured. |
34 | bad_status | HTTP request completed with a status code outside the configured `status_accepted` range (default: non-200). |
35 | bad_content | HTTP request completed successfully but the response body does not match the expected content (when using `response_match`). |
36 - | bad_header | HTTP request completed successfully but response headers do not match the expected values (when using `headers_match`). |
36 + | bad_header | HTTP request completed successfully but response headers do not match the expected values (when using `header_match`). |
37 method_description: ""
38 supported_platforms:
39 include: []
@@ -81,19 +81,19 @@ modules:
81 description: If the status code is accepted, the content of the response will be matched against this regular expression.
82 default_value: ""
83 required: false
84 - - name: headers_match
84 + - name: header_match
85 description: "This option defines a set of rules that check for specific key-value pairs in the HTTP headers of the response."
86 default_value: "[]"
87 required: false
88 - - name: headers_match.exclude
88 + - name: header_match.exclude
89 description: "This option determines whether the rule should check for the presence of the specified key-value pair or the absence of it."
90 default_value: false
91 required: false
92 - - name: headers_match.key
92 + - name: header_match.key
93 description: "The exact name of the HTTP header to check for."
94 default_value: ""
95 required: true
96 - - name: headers_match.value
96 + - name: header_match.value
97 description: "The [pattern](https://github.com/netdata/netdata/tree/master/src/go/pkg/matcher#supported-format) to match against the value of the specified header."
98 default_value: ""
99 required: false