Skip to content

Commit 1251cbb

Browse files
authored
#118 Collect VM metrics (#120)
1 parent d9563f7 commit 1251cbb

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

backend/prometheus/prometheus.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
global:
2-
scrape_interval: 5s
2+
scrape_interval: 10s
33

44
scrape_configs:
55

@@ -95,6 +95,13 @@ scrape_configs:
9595
type: 'A'
9696
port: 8405
9797

98+
- job_name: node
99+
dns_sd_configs:
100+
- names:
101+
- node-exporter.dating.se.ifmo.ru
102+
type: 'A'
103+
port: 9100
104+
98105
- job_name: prometheus
99106
dns_sd_configs:
100107
- names:

compose.yml

+10
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,16 @@ services:
168168
- "127.0.0.1:8455:8455"
169169
- "127.0.0.1:8456:8456"
170170
- "127.0.0.1:8457:8457"
171+
node-exporter:
172+
image: prom/node-exporter:latest
173+
container_name: node_exporter
174+
command:
175+
- "--path.rootfs=/host"
176+
pid: host
177+
volumes:
178+
- "/:/host:ro,rslave"
179+
tty: true
180+
hostname: node-exporter.dating.se.ifmo.ru
171181
prometheus:
172182
image: ghcr.io/secs-dev/itmo-dating-prometheus:latest
173183
build:

0 commit comments

Comments
 (0)