grafana / loki

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

fix: Keep the service_name label after discovery in push.ParseLokiRequest before calculating retention and passing to the usage tracker #14960

Closed JordanRushing closed 6 days ago

JordanRushing commented 6 days ago

What this PR does / why we need it:

Currently the label set passed to usage trackers in push.ParseLokiRequest does not include the service_name label.

This label could be useful at query time for usage metrics and shouldn't affect RetentionPeriodFor for a tenant so this PR keeps it.

Which issue(s) this PR fixes:

N/A

Special notes for your reviewer:

N/A

Checklist