Replies: 1 comment 1 reply
-
|
This may not work as it some fields are not templateable, but have you tried |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hi Vector team,
I'm not sure if this is the intended behavior or a bug so I'm opening it in the discussion tab. The prometheus_remote_write sink does not support dynamic templating for the tenant_id field, unlike other sinks such as Loki. This prevents us from dynamically routing metrics to different tenants based on event data.
I've checked existing tests written in https://github.com/vectordotdev/vector/blob/bc654a79/src/sinks/prometheus/remote_write/tests.rs#L57 and https://github.com/vectordotdev/vector/blob/bc654a79/src/sinks/loki/integration_tests.rs#L437. Prometheus is configured statically while Loki isn't.
I tried the following approaches but nothing works:
__tenant_id__tagIs this the expected behavior for the prometheus_remote_write sink?
Vector Config
Vector Logs
Beta Was this translation helpful? Give feedback.
All reactions