grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.96k stars 3.46k forks source link

feat: hide __aggregated_metric__ in /series and /labels #14677

Closed trevorwhitney closed 6 days ago

trevorwhitney commented 2 weeks ago

What this PR does / why we need it:

This PR removes {__aggregated_metric=~".+"} streams from the /series endpoint, unless an __aggregated_metric__ matcher is explicitly requested. It does the same for /labels, so __aggregated_metric__ will not appear in a /labels response, but you can still request /labels/__aggregated_metric/values.

This will alleviate confusion for people using a tool like logcli series --analyze-labels for cardinatlity analysis.

Special notes for your reviewer:

Checklist

trevorwhitney commented 6 days ago

I'm closing this for now, we'll see if we want it again in the future