Open coolguy357 opened 1 year ago
Hey @coolguy357 , I don't think there is any easy solution for your request. Opsgenie only allows adding and removing tags by name: https://docs.opsgenie.com/docs/alert-api#add-tags-to-alert Alertmanager is generating the list of tags by the template configuration you provide.
To implement your request, alertmanager would need
I'm curious to know what you're trying to achieve with the tags. Maybe there are other options, such as escalation or schedules, that you could use?
For example should an alarm that occurs during business hours automatically use the off-hours route?
Can we optionally also update alerts' tags in OpsGenie?
What did you do? I configured two receivers, one for business hours alerts, and one for off hours alerts. Both point to the same OpsGenie integration, but differ in their tags, which would be used for routing within OpsGenie. Alerts created during "business hours" are not updated with the tags appropriate for their receiver when fired during "off hours", and vice versa. Their routes within OpsGenie are tied to their initial firing receiver. What did you expect to see? If tags change on an alert in Alertmanager, I expect the tags to be updated in OpsGenie
What did you see instead? Under which circumstances?
Alertmanager configuration file: