Open LinTechSo opened 5 days ago
Hey!
tenant_id
is already dynamically configurable via templating: https://vector.dev/docs/reference/configuration/sinks/loki/#tenant_id
For example:
tenant_id: "{{ .some_field }} "
Will use some_field
as the tenant id.
Adding in the ability to configure arbitrary HTTP headers seems useful though.
Hi
In the current Loki sink configuration in Vector (https://vector.dev/docs/reference/configuration/sinks/loki/), there is no support for specifying a tenant_id_key or custom header fields.
To make Vector more flexible for users running multi-tenant Loki clusters or who need to pass custom headers for authentication/other purposes, I propose adding these two features:
I saw a similar configuration for FluentBit: https://docs.fluentbit.io/manual/pipeline/outputs/loki
Use Cases
No response
Attempted Solutions
No response
Proposal
No response
References
No response
Version
0.40.0