We use a custom remote read adapter for reading time series data from our storage backend. In process of transitioning to different backend, I want to temporarily redirect selected remote read requests (filter on date) to the new remote read adapter. Does Prometheus remote read support redirects as detailed in HTTP specification? I want to avoid adding another hop in forwarding time series responses via the old adapter.
current flow:
<prometheus>
---grpc/http--> <legacy_remote_read_adapter>
-----custom_protocol---> legacy_backend
new flow:
<prometheus>
---grpc/http--> <legacy_remote_read_adapter>
(now <= T) -----custom_protocol---> legacy_backend
(now > T) ----http/redirect to new adapter
---> new_remote_read_adapter ---> new_backend
---> ts directly to prometheus
In the highlighted section of flow, I want to use redirect so the response is forwarded directly to prometheus from the new remote read adapter.