Configuration sample for Distributor Forwarding in YAML format #4576
-
|
Hi I am trying to wrap my head around how to one configures the forwarding of metrics from the Distributor component. The functionality that was implemented here: I am looking for a sample in YAML format that would take a list of metrics send via remote write to a tenant for the Distributor to store in Mimir, where the Distributor would also forward that list of metrics to another remote write enabled Prometheus system. The setup would need to support "Bearer token" as the authentication means towards the remote Prometheus endpoint if that is possible, and show how to configure which metrics to forwards in addition to storing locally in Mimir and of course show how to configure the remote Prometheus endpoint with credential for the authentication part. I very much hope this is possible - and would be very grateful if anyone would have such a sample or could construct such a sample. best regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hi. Right now the forwarding feature has no support for adding authentication headers. Each of the mentioned metrics will be forwarded to configured endpoint. Note that this feature is experimental, and very likely to be removed in the future. |
Beta Was this translation helpful? Give feedback.
-
|
I'm curious, what is your use case for using forwarding? |
Beta Was this translation helpful? Give feedback.
Hi. Right now the forwarding feature has no support for adding authentication headers.
As for configuration, it needs to be stored in runtime configuration, and looks something like this:
Each of the mentioned metrics will be forwarded to configured endpoint.
Note that this feature is experimental, and very likely to be removed in the future.