diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -93,6 +93,8 @@ environment: SWH_CONFIG_FILENAME: /scheduler.yml SWH_SCHEDULER_CONFIG_FILE: /scheduler.yml + STATSD_HOST: prometheus-statsd-exporter + STATSD_PORT: 9125 entrypoint: /entrypoint.sh depends_on: - swh-scheduler-db @@ -111,6 +113,8 @@ environment: SWH_CONFIG_FILENAME: /scheduler.yml SWH_SCHEDULER_CONFIG_FILE: /scheduler.yml + STATSD_HOST: prometheus-statsd-exporter + STATSD_PORT: 9125 entrypoint: /entrypoint.sh command: start-listener depends_on: @@ -129,6 +133,8 @@ environment: SWH_CONFIG_FILENAME: /scheduler.yml SWH_SCHEDULER_CONFIG_FILE: /scheduler.yml + STATSD_HOST: prometheus-statsd-exporter + STATSD_PORT: 9125 entrypoint: /entrypoint.sh command: start-runner -p 10 depends_on: @@ -162,6 +168,8 @@ environment: SWH_CONFIG_FILENAME: /storage.yml STORAGE_BACKEND: postgresql + STATSD_HOST: prometheus-statsd-exporter + STATSD_PORT: 9125 entrypoint: /entrypoint.sh volumes: - "./conf/storage.yml:/storage.yml:ro" @@ -176,6 +184,8 @@ - 5003:5003 environment: SWH_CONFIG_FILENAME: /objstorage.yml + STATSD_HOST: prometheus-statsd-exporter + STATSD_PORT: 9125 entrypoint: /entrypoint.sh volumes: - "./conf/objstorage.yml:/objstorage.yml:ro" @@ -246,6 +256,8 @@ environment: VERBOSITY: 3 SWH_CONFIG_FILENAME: /deposit.yml + STATSD_HOST: prometheus-statsd-exporter + STATSD_PORT: 9125 DJANGO_SETTINGS_MODULE: swh.deposit.settings.production env_file: - ./env/deposit-db.env @@ -269,6 +281,8 @@ - ./env/vault-db.env environment: SWH_CONFIG_FILENAME: /vault.yml + STATSD_HOST: prometheus-statsd-exporter + STATSD_PORT: 9125 command: server ports: - 5005:5005 @@ -288,6 +302,8 @@ command: worker environment: SWH_CONFIG_FILENAME: /cooker.yml + STATSD_HOST: prometheus-statsd-exporter + STATSD_PORT: 9125 depends_on: - swh-vault - swh-storage