Added the PrometheusRelayClientTimeout env param for Relay
Change-Id: I3757f2ccb23b2463fc813b49022e958e870c60b7
Related-Bug: PROD-30558
(cherry picked from commit 2168931cfd09435cc5be4eb31677b4f37fceb98f)
diff --git a/metadata/service/relay/init.yml b/metadata/service/relay/init.yml
index 31608f8..8d6a52b 100644
--- a/metadata/service/relay/init.yml
+++ b/metadata/service/relay/init.yml
@@ -5,8 +5,11 @@
parameters:
_param:
prometheus_relay_bind_port: 8080
+ prometheus_relay_client_timeout: 10
prometheus:
relay:
enabled: true
bind:
port: ${_param:prometheus_relay_bind_port}
+ client:
+ timeout: ${_param:prometheus_relay_client_timeout}
diff --git a/prometheus/files/relay/default b/prometheus/files/relay/default
index 953c4c0..80635d9 100644
--- a/prometheus/files/relay/default
+++ b/prometheus/files/relay/default
@@ -8,3 +8,4 @@
PROMETHEUS_RELAY_BACKENDS={{ relay_backends | join(',') }}
{%- endif %}
PROMETHEUS_RELAY_BIND_PORT={{ relay.bind.port }}
+PrometheusRelayClientTimeout={{ relay.client.timeout }}