diff --git a/backend/prometheus/prometheus.yml b/backend/prometheus/prometheus.yml index 364a4df..9377518 100644 --- a/backend/prometheus/prometheus.yml +++ b/backend/prometheus/prometheus.yml @@ -1,5 +1,5 @@ global: - scrape_interval: 5s + scrape_interval: 10s scrape_configs: @@ -95,6 +95,13 @@ scrape_configs: type: 'A' port: 8405 + - job_name: node + dns_sd_configs: + - names: + - node-exporter.dating.se.ifmo.ru + type: 'A' + port: 9100 + - job_name: prometheus dns_sd_configs: - names: diff --git a/compose.yml b/compose.yml index 57dc01b..98d3cdf 100644 --- a/compose.yml +++ b/compose.yml @@ -168,6 +168,16 @@ services: - "127.0.0.1:8455:8455" - "127.0.0.1:8456:8456" - "127.0.0.1:8457:8457" + node-exporter: + image: prom/node-exporter:latest + container_name: node_exporter + command: + - "--path.rootfs=/host" + pid: host + volumes: + - "/:/host:ro,rslave" + tty: true + hostname: node-exporter.dating.se.ifmo.ru prometheus: image: ghcr.io/secs-dev/itmo-dating-prometheus:latest build: