To report an alert if the number of Go coroutines is greater than 500, use the following SQL statement in the alert policy:
SQL
* | select promql_query('sum by(instance) (go_goroutines) > 500') from metrics limit 1000