opsgenie_addr cannot be formatted with fields from the first match #1561
Replies: 2 comments
-
The author of the opsgenie alerter chose to not support dynamic values via field substitution for the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It appears that opsgenie_addr cannot be formatted with fields from the first match.
Steps to reproduce:-
opsgenie_addr: "{_id}"
You will get
ERROR:elastalert:Error while running alert opsgenie: Error sending alert: Invalid URL '{_id}': No scheme supplied. Perhaps you meant https://{_id}?
Expectation:
NB: the value of _id is 9409d72a-5954-4d4f-9f3b-f77de0530298 which is also my opsgenie_alias. I want to dynamically generate opsgenie_addr to something like "https://api.opsgenie.com/v2/alerts/{_id}/close?identifierType=alias". However, if I do this, {_id} is not replaced.
Beta Was this translation helpful? Give feedback.
All reactions