-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#3513: Add GroupMarker interface #3792
Merged
gotjosh
merged 11 commits into
prometheus:main
from
grobinson-grafana:grobinson/mark-muted-alerts-2
Apr 30, 2024
Merged
#3513: Add GroupMarker interface #3792
gotjosh
merged 11 commits into
prometheus:main
from
grobinson-grafana:grobinson/mark-muted-alerts-2
Apr 30, 2024
Commits on Apr 30, 2024
-
This commit adds a new GroupMarker interface that marks the status of groups. For example, whether an alert is muted because or one or more active or mute time intervals. It renames the existing Marker interface to AlertMarker to avoid confusion. Signed-off-by: George Robinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ebf147f - Browse repository at this point
Copy the full SHA ebf147fView commit details -
Signed-off-by: George Robinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3c8dc62 - Browse repository at this point
Copy the full SHA 3c8dc62View commit details -
Signed-off-by: George Robinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for eca889b - Browse repository at this point
Copy the full SHA eca889bView commit details -
This commit changes memMarker to MemMarker as it now implements both the AlertMarker and GroupMarker interfaces. We can return *memMarker, but it causes lint to fail. Signed-off-by: George Robinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6b056cc - Browse repository at this point
Copy the full SHA 6b056ccView commit details -
This commit fixes a bug in SetMuted where a marker could not be removed. The method now works as documented in the interface. Signed-off-by: George Robinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 64a03b8 - Browse repository at this point
Copy the full SHA 64a03b8View commit details -
Signed-off-by: George Robinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d6055ea - Browse repository at this point
Copy the full SHA d6055eaView commit details -
Optimize GroupMarker to remove fingerprint
I realized that since active and mute timings are applied to whole group rather than individual alerts within a group, we can remove fingerprints from the GroupMarker interface. This will make the code much simpler and also reduce the amount of data that needs to be tracked. Signed-off-by: George Robinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cbe0128 - Browse repository at this point
Copy the full SHA cbe0128View commit details -
Signed-off-by: George Robinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 47e952c - Browse repository at this point
Copy the full SHA 47e952cView commit details -
Fix comments on GroupMarker interface
Signed-off-by: George Robinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3132f61 - Browse repository at this point
Copy the full SHA 3132f61View commit details -
Signed-off-by: George Robinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 88dfcdb - Browse repository at this point
Copy the full SHA 88dfcdbView commit details -
Add routeID to GroupMarker interface
Signed-off-by: George Robinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4a2781c - Browse repository at this point
Copy the full SHA 4a2781cView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.