Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading