We have a setup like this:
elasticsearch <----> istio-proxy sidecar | elasticsearch-exporter (es-exporter) | istio-proxy sidecar <------> prometheus
All services are running within an EKS cluster. Istio version - 1.4.10.
Since, huge amount of data is present in elasticsearch, es-exporter takes a while to collect data (around 50s). Prometheus scrapes es-exporter every 60s. Since sidecar container istio-proxy's (es-exporter's sidecar) default timeout is 15s, prometheus targets are down with server returned HTTP status 504 Gateway Timeout
.
Any idea how to overcome this issue. Increasing istio-proxy's timeout looks like a potential solution. Not sure how exactly this can be done.