Skip to content

Ensure time interval comparisons are in UTC#2648

Merged
roidelapluie merged 4 commits intoprometheus:mainfrom
benridley:bugfix_mutetime_utc
Jul 26, 2021
Merged

Ensure time interval comparisons are in UTC#2648
roidelapluie merged 4 commits intoprometheus:mainfrom
benridley:bugfix_mutetime_utc

Conversation

@benridley
Copy link
Contributor

The mute time mechanism uses the internal timer of alert aggregation groups to determine the current time, which is then used to determine whether a route should be muted. By default, this time fires in the local time of the server, not UTC as desired.

This PR ensures comparisons are only made in UTC.

Signed-off-by: Ben Ridley <benridley29@gmail.com>
Signed-off-by: Ben Ridley <benridley29@gmail.com>
Signed-off-by: Ben Ridley <benridley29@gmail.com>
Signed-off-by: Ben Ridley <benridley29@gmail.com>
@roidelapluie
Copy link
Member

thanks

@benridley
Copy link
Contributor Author

@roidelapluie Just wanted to make sure too that we mention this in the release notes for the next version. Some people might already have mute times setup that assume local time and this will break them :(.

@roidelapluie
Copy link
Member

This was released in 2.23

@benridley
Copy link
Contributor Author

Oh! I didn't realize we had a release already. No worries, at least this change makes the behavior consistent with the documentation so hopefully it won't surprise too many users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants