Query for top 5 alerts

Hi everyone,

I have created more than 550 alerts from loki data source and I need to create dashboard to show the top 5 alerts for the particular duration. please can any one help mee… and I’m grafana as open source

It’s not clear what “top 5 alerts” means. By the number of triggered alerts in the selected Time Range?

You may try to use HTTP API Data Source to get all Alert Annotations and then use Group and Sort Transformations to get the top 5.

hi mikhailvolkov,

i want to list all alerts in grafan dashaboard and sort them out on the basis of creation time/alert firing time from datasource as loki and I created alerts using cortex tool.