grafana / oncall

Developer-friendly incident response with brilliant Slack integration
GNU Affero General Public License v3.0
3.5k stars 288 forks source link

Sort Alert Groups #389

Open jakubvojacek opened 2 years ago

jakubvojacek commented 2 years ago

Hello

would it be please possible to add the ability to sort the alerts by

As of now, the created date is shown on the grid but its not sortable. But sometimes the updated date is much more interesting to see & sort by (when one alert has multiple subalerts grouped together). Right now when an alert was received yesterday and again today, I wont see it at the top of the list but on yesterdays date.

Screenshot 2022-08-21 at 21 48 31

Thanks Jakub

Matvey-Kuk commented 2 years ago

Not sure if it will be easy to add "Updated" column, but we def need to add sorting for "Created"

jakubvojacek commented 2 years ago

not sure how its handled internally but just add a datetime column into the alert table and everytime you add a new groupped alert update the datetime column? It sure would be interesting for us to see which of the silence issues could be unsilenced based on the last updated time

vadimkerr commented 1 year ago

This will probably require adding/modifying existing indices on the alert group table, which should be handled very carefully, since the alert group table can be huge on some instances. When I last checked this, I found out that just adding an order_by on started_at causes huge latency increase for instances with lots of alerts groups, so some in-depth investigation is needed for this issue.

Matvey-Kuk commented 1 year ago

@vadimkerr @Ferril @teodosii I propose to postpone this one because of the problem @vadimkerr mentioned above.

github-actions[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had activity in the last 120 days.

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had activity in the last 120 days.