From 28edff04f6d44d50880f72212ca202c8bd74edb9 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sat, 7 Aug 2021 11:50:00 -0500 Subject: [PATCH] Move prometheus back to synapse --- conf/prometheus.yml | 65 --------------------------------------------- docker-compose.yml | 20 +++++++------- 2 files changed, 10 insertions(+), 75 deletions(-) delete mode 100644 conf/prometheus.yml diff --git a/conf/prometheus.yml b/conf/prometheus.yml deleted file mode 100644 index 71214ec..0000000 --- a/conf/prometheus.yml +++ /dev/null @@ -1,65 +0,0 @@ -scrape_configs: - - job_name: "caddy" - scrape_interval: 15s - static_configs: - - targets: ["host.docker.internal:2020"] - labels: - instance: "boba.best" - - - job_name: "synapse" - scrape_interval: 15s - metrics_path: "/_synapse/metrics" - static_configs: - - targets: ["synapse_synapse:8008"] - labels: - instance: "matrix.boba.best" - job: "master" - index: 1 - - - targets: ["synapse_generic1:8008"] - labels: - instance: "matrix.boba.best" - job: "generic_worker" - index: 1 - - targets: ["synapse_generic2:8008"] - labels: - instance: "matrix.boba.best" - job: "generic_worker" - index: 2 - - targets: ["synapse_generic3:8008"] - labels: - instance: "matrix.boba.best" - job: "generic_worker" - index: 3 - - targets: ["synapse_generic4:8008"] - labels: - instance: "matrix.boba.best" - job: "generic_worker" - index: 4 - - - targets: ["synapse_sender1:8008"] - labels: - instance: "matrix.boba.best" - job: "federation_sender" - index: 1 - - targets: ["synapse_sender2:8008"] - labels: - instance: "matrix.boba.best" - job: "federation_sender" - index: 2 - - targets: ["synapse_sender3:8008"] - labels: - instance: "matrix.boba.best" - job: "federation_sender" - index: 3 - - targets: ["synapse_sender4:8008"] - labels: - instance: "matrix.boba.best" - job: "federation_sender" - index: 4 - - - targets: ["synapse_media:8008"] - labels: - instance: "matrix.boba.best" - job: "media_repository" - index: 1 diff --git a/docker-compose.yml b/docker-compose.yml index 2bc8012..d13d580 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,13 +34,13 @@ services: - 127.0.0.1:84:3000 restart: always - prometheus: - image: prom/prometheus:latest - restart: always - command: - - --config.file=/etc/prometheus/prometheus.yml - volumes: - - ./conf/prometheus.yml:/etc/prometheus/prometheus.yml - - ./data/prometheus:/prometheus - extra_hosts: - - "host.docker.internal:host-gateway" + #prometheus: + # image: prom/prometheus:latest + # restart: always + # command: + # - --config.file=/etc/prometheus/prometheus.yml + # volumes: + # - ./conf/prometheus.yml:/etc/prometheus/prometheus.yml + # - ./data/prometheus:/prometheus + # extra_hosts: + # - "host.docker.internal:host-gateway"