Prometheus: grouping metrics by metric names

The following query lists all available metrics:

sum by(__name__)({app="bar"})

Where bar is the application name, as you can see in the log entries posted in the question.


{__name__=~".+"} will return all non-stale time series, however this is an expensive query and should be generally avoided.