Skip to content

Commit

Permalink
#118 Collect VM metrics (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
vityaman authored Jan 25, 2025
1 parent d9563f7 commit 1251cbb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
9 changes: 8 additions & 1 deletion backend/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
global:
scrape_interval: 5s
scrape_interval: 10s

scrape_configs:

Expand Down Expand Up @@ -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:
Expand Down
10 changes: 10 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1251cbb

Please sign in to comment.