Repository navigation
Conversation
Fixes a bug in the creation of routes which would mistakenly override parent route config with empty time interval configuration if none were specified on the child. Signed-off-by: Ben Ridley <[email protected]>
Signed-off-by: Ben Ridley <[email protected]>
5f93ef6 to
148f4a8
Compare
|
Thanks! I haven't checked in detail, but @simonpasquier mentioned in #2833 (comment) that overriding time intervals in children could lead to issues because empty time intervals are also valid. Would setting an explicit empty list of intervals (vs. omitting the field entirely) in a child allow overriding the time intervals of a parent with this PR? |
Maybe I'm misunderstanding the implications of this, but I think this shouldn't have any impact. Previously, every new route would receive an explicit empty list of intervals (through the So empty time intervals on the parent will result in the same behaviour before this change. The change will be if the parent has defined intervals which will now be inherited. |
|
Friendly ping: the review seems to have fallen through the cracks? 😇 |
Apparently, active_time_intervals setting is not inherited by child routes, see: prometheus/alertmanager#2833 prometheus/alertmanager#3538
|
Julius is correct there: Empty list |
|
We talked about this at Alertmanager Bug Scrub, decided that this PR cannot be merged, but the original issue should remain open. The reason is that changing the meaning of the existing fields will silently mute a lot of alerts. Having a migration path for existing configuration is thus a prerequisite, something we will work towards in the future. Sorry, to the users, which are still waiting for this change. It will have to wait for even longer. Kind regards, Solomon Jacobs |
Fixes #2833.
Fixes a bug in the creation of routes which would mistakenly override parent route config with empty time interval configuration if none were specified on the child.