mirror of https://github.com/grafana/loki
Expose tenant ID through relabel in push promtail targets (#7250)
**What this PR does / why we need it**: Some Promtail targets that support pushing logs through HTTP, allow using a specific header for writing logs for multiple tenants. This log is propagated through a Promtail internal label, that is then consumed by the remote write client. If Promtail is used in a multi-tenant manner, it'd be nice to somehow be able to track how much is each tenant's share from the logs received. This PR exposes the received tenant id value through relabeling. This allows for example, keeping it as a label and exposing a metric though the `metrics` pipeline stage, which can be segregated by tenant. **Which issue(s) this PR fixes**: Related to https://github.com/grafana/cloud-onboarding/issues/2067pull/7277/head
parent
73bea7e4fa
commit
64fe0af9dd
Loading…
Reference in new issue