monitoring: системные дашборды + multi-server (file_sd), readme
This commit is contained in:
@@ -9,20 +9,12 @@ scrape_configs:
|
||||
static_configs:
|
||||
- targets: ['localhost:9090']
|
||||
|
||||
# Хосты: новый сервер = добавить файл в targets/node/<name>.yml + reload
|
||||
- job_name: node
|
||||
static_configs:
|
||||
- targets: ['node-exporter:9100']
|
||||
labels:
|
||||
instance: fr1
|
||||
file_sd_configs:
|
||||
- files: ['/etc/prometheus/targets/node/*.yml']
|
||||
|
||||
# Контейнеры
|
||||
- job_name: cadvisor
|
||||
static_configs:
|
||||
- targets: ['cadvisor:8080']
|
||||
labels:
|
||||
instance: fr1
|
||||
|
||||
# de1 будет добавлен позже (через туннель AmneziaWG):
|
||||
# - job_name: node-de1
|
||||
# static_configs:
|
||||
# - targets: ['10.8.1.X:9100']
|
||||
# labels: { instance: de1 }
|
||||
file_sd_configs:
|
||||
- files: ['/etc/prometheus/targets/cadvisor/*.yml']
|
||||
|
||||
3
stacks/monitoring/prometheus/targets/cadvisor/fr1.yml
Normal file
3
stacks/monitoring/prometheus/targets/cadvisor/fr1.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
- targets: ['cadvisor:8080']
|
||||
labels:
|
||||
instance: fr1
|
||||
3
stacks/monitoring/prometheus/targets/node/fr1.yml
Normal file
3
stacks/monitoring/prometheus/targets/node/fr1.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
- targets: ['node-exporter:9100']
|
||||
labels:
|
||||
instance: fr1
|
||||
Reference in New Issue
Block a user