From ea8ef06abfef2d376f52e55a41e0bfc43bb5a999 Mon Sep 17 00:00:00 2001 From: Pablo Baeyens Date: Thu, 29 Dec 2022 13:51:00 +0100 Subject: [PATCH 1/2] [collector] Use ${env:ENV} style syntax for env variable expansion --- content/en/docs/collector/configuration.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/en/docs/collector/configuration.md b/content/en/docs/collector/configuration.md index b6f7740eca76..426309df7c27 100644 --- a/content/en/docs/collector/configuration.md +++ b/content/en/docs/collector/configuration.md @@ -468,14 +468,14 @@ service: ### Configuration Environment Variables The use and expansion of environment variables is supported in the Collector -configuration using shell-style syntax. For example: +configuration using PowerShell-style syntax. For example: ```yaml processors: attributes/example: actions: - - key: "${DB_KEY}" - action: "$OPERATION" + - key: "${env:DB_KEY}" + action: "${env:OPERATION}" ``` Use `$$` to indicate a literal `$`. For example, representing From 9f27bd7f0ca77cc1570dc45b79dbbcc4a64a54dc Mon Sep 17 00:00:00 2001 From: Pablo Baeyens Date: Tue, 3 Jan 2023 12:53:56 +0100 Subject: [PATCH 2/2] Reword without mention to PowerShell --- content/en/docs/collector/configuration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/collector/configuration.md b/content/en/docs/collector/configuration.md index 426309df7c27..5c9dae49d1e5 100644 --- a/content/en/docs/collector/configuration.md +++ b/content/en/docs/collector/configuration.md @@ -467,8 +467,8 @@ service: ### Configuration Environment Variables -The use and expansion of environment variables is supported in the Collector -configuration using PowerShell-style syntax. For example: +The use and expansion of environment variables is supported in the Collector configuration. +For example to use the values stored on the `DB_KEY` and `OPERATION` environment variables you can write the following: ```yaml processors: