Skip to content

How to reference env vars from rule files #1340

Closed Locked Answered by jertel
missaeldenadai asked this question in Q&A
Discussion options

You must be logged in to vote

You can use reference values in combination with extraConfigOptions to do assign different keys per rule. Ex:

Rule 1:

name: foo
alert: opsgenie
opsgenie_key: $fookey$

Rule 2:

name: bar
alert: opsgenie
opsgenie_key: $barkey$

extraConfigOptions:

fookey: xyz
barkey: abc

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@missaeldenadai
Comment options

Answer selected by missaeldenadai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants