Skip to content

Commit 97cecad

Browse files
[STAC-22427]: update extra_headers to clarify type and substitution opts
- better explain that the header values can include dynamic environment variables using the %%env_VARIABLE%% syntax. - fix the incorrect variable type mentioned previously (list vs actual dict mapping)
1 parent fee4282 commit 97cecad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

use/metrics/open-metrics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ To enable the OpenMetrics integration and begin collecting metrics data from an
6363
- **ssl_cert** - If your OpenMetrics endpoint is secured, enter the path to the certificate and specify the private key in the `ssl_private_key` parameter, or give the path to a file containing both the certificate and the private key.
6464
- **ssl_private_key** - required if the certificate linked in `ssl_cert` doesn't include the private key. Note that the private key to your local certificate must be unencrypted.
6565
- **ssl_ca_cert** - the path to the trusted CA used for generating custom certificates.
66-
- **extra_headers** - a list of additional HTTP headers to send in queries to the OpenMetrics endpoint. Can be combined with autodiscovery template variables. For example, `"Authorization: Bearer %%env_TOKEN%%"`.
66+
- **extra_headers** - a dictionary mapping HTTP header names to their corresponding values to send in queries to the OpenMetrics endpoint. The values can dynamically include environment variables using the `%%env_VARIABLE%%` syntax. For example, `"Authorization: Bearer %%env_TOKEN%%"` automatically substitutes the value of the `TOKEN` environment variable.
6767
4. Wait for the Agent to collect data from the OpenMetrics endpoint and send it to SUSE Observability.
6868

6969
{% endtab %}

0 commit comments

Comments
 (0)