This website requires JavaScript.
Explore
Help
Sign In
RepoMirrors
/
prometheus
mirror of
https://github.com/prometheus/prometheus
Watch
1
Star
0
Fork
You've already forked prometheus
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
b8cb12b989
prometheus
/
config
/
testdata
/
external_labels.good.yml
8 lines
119 B
YAML
Raw
Normal View
History
Unescape
Escape
Add environment variable expansion in external label values Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2021-03-25 21:28:58 +00:00
global
:
external_labels
:
bar
:
foo
foo
:
${TEST}
baz
:
foo${TEST}bar
Allow escaping a dollar sign when expanding external labels (#10129) * Allow escaping a dollar sign when expanding external labels There is currently no mechanism to natively escape a dollar sign in the os.Expand function. As a workaround, this commit modifies the external label expansion logic to treat a double dollar ($$) as a mechanism for escaping the dollar character. Signed-off-by: fpetkovski <filip.petkovsky@gmail.com>
2022-01-17 15:43:55 +00:00
qux
:
foo$${TEST}
xyz
:
foo$$bar