mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
4855a0c067
* 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>
8 lines
119 B
YAML
8 lines
119 B
YAML
global:
|
|
external_labels:
|
|
bar: foo
|
|
foo: ${TEST}
|
|
baz: foo${TEST}bar
|
|
qux: foo$${TEST}
|
|
xyz: foo$$bar
|