Add PROMETHEUS_ALERT_RESEND_DELAY in Prometheus Docker config
+ increase default sf-notifier workers to 8
Change-Id: I156659e27cda4970fe49312b5778b08a21ea1981
Related-bug: PROD-35421
diff --git a/docker/swarm/stack/monitoring/prometheus/init.yml b/docker/swarm/stack/monitoring/prometheus/init.yml
index 924c08c..b364259 100644
--- a/docker/swarm/stack/monitoring/prometheus/init.yml
+++ b/docker/swarm/stack/monitoring/prometheus/init.yml
@@ -9,6 +9,7 @@
prometheus_storage_heap_size: 3221225472
prometheus_storage_num_fingerprint_mutexes: 4096
prometheus_cors_origin: '.*'
+ prometheus_alert_resend_delay: "2m"
docker:
client:
stack:
@@ -43,6 +44,7 @@
PROMETHEUS_BIND_ADDRESS: ${prometheus:server:bind:address}
PROMETHEUS_STORAGE_LOCAL_RETENTION: ${prometheus:server:storage:local:retention}
PROMETHEUS_EXTERNAL_URL: "${_param:prometheus_external_proto}://${_param:prometheus_external_url}:15010"
+ PROMETHEUS_ALERT_RESEND_DELAY: "${_param:prometheus_alert_resend_delay}"
# Backward compatibility for Prometheus 1.7
PROMETHEUS_STORAGE_LOCAL_ENGINE: ${_param:prometheus_storage_local_engine}
PROMETHEUS_STORAGE_LOCAL_TARGET_HEAP_SIZE: ${_param:prometheus_storage_heap_size}
diff --git a/docker/swarm/stack/monitoring/sf_notifier.yml b/docker/swarm/stack/monitoring/sf_notifier.yml
index b8b2dd6..5770b09 100644
--- a/docker/swarm/stack/monitoring/sf_notifier.yml
+++ b/docker/swarm/stack/monitoring/sf_notifier.yml
@@ -2,7 +2,7 @@
- system.prometheus.sf_notifier.container
parameters:
_param:
- sf_notifier_workers: 4
+ sf_notifier_workers: 8
sf_notifier_buffer_size: 32768
sf_notifier_alert_id_hash_func: sha256
docker: