208 lines
4.6 KiB
YAML
208 lines
4.6 KiB
YAML
global:
|
|
scrape_interval: 15s
|
|
evaluation_interval: 15s
|
|
|
|
scrape_configs:
|
|
- job_name: prometheus
|
|
static_configs:
|
|
- targets:
|
|
- prometheus:9090
|
|
|
|
- job_name: node-01-gateway
|
|
metrics_path: /actuator/prometheus
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.101:9000
|
|
labels:
|
|
application: video-gateway
|
|
node: node-01
|
|
|
|
- job_name: node-01-auth
|
|
metrics_path: /actuator/prometheus
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.101:9001
|
|
labels:
|
|
application: video-auth
|
|
node: node-01
|
|
|
|
- job_name: node-01-user
|
|
metrics_path: /actuator/prometheus
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.101:9002
|
|
labels:
|
|
application: video-user
|
|
node: node-01
|
|
|
|
- job_name: node-01-content
|
|
metrics_path: /actuator/prometheus
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.101:9003
|
|
labels:
|
|
application: video-content
|
|
node: node-01
|
|
|
|
- job_name: node-01-comment
|
|
metrics_path: /actuator/prometheus
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.101:9004
|
|
labels:
|
|
application: video-comment
|
|
node: node-01
|
|
|
|
- job_name: node-01-recommend
|
|
metrics_path: /actuator/prometheus
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.101:9005
|
|
labels:
|
|
application: video-recommend
|
|
node: node-01
|
|
|
|
- job_name: node-01-admin
|
|
metrics_path: /actuator/prometheus
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.101:9006
|
|
labels:
|
|
application: video-admin
|
|
node: node-01
|
|
|
|
- job_name: node-02-gateway
|
|
metrics_path: /actuator/prometheus
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.102:9000
|
|
labels:
|
|
application: video-gateway
|
|
node: node-02
|
|
|
|
- job_name: node-02-auth
|
|
metrics_path: /actuator/prometheus
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.102:9001
|
|
labels:
|
|
application: video-auth
|
|
node: node-02
|
|
|
|
- job_name: node-02-user
|
|
metrics_path: /actuator/prometheus
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.102:9002
|
|
labels:
|
|
application: video-user
|
|
node: node-02
|
|
|
|
- job_name: node-02-content
|
|
metrics_path: /actuator/prometheus
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.102:9003
|
|
labels:
|
|
application: video-content
|
|
node: node-02
|
|
|
|
- job_name: node-02-comment
|
|
metrics_path: /actuator/prometheus
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.102:9004
|
|
labels:
|
|
application: video-comment
|
|
node: node-02
|
|
|
|
- job_name: node-02-recommend
|
|
metrics_path: /actuator/prometheus
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.102:9005
|
|
labels:
|
|
application: video-recommend
|
|
node: node-02
|
|
|
|
- job_name: node-02-admin
|
|
metrics_path: /actuator/prometheus
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.102:9006
|
|
labels:
|
|
application: video-admin
|
|
node: node-02
|
|
|
|
- job_name: node-01-mysql-exporter
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.101:9104
|
|
labels:
|
|
application: mysql
|
|
node: node-01
|
|
|
|
- job_name: node-02-mysql-exporter
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.102:9104
|
|
labels:
|
|
application: mysql
|
|
node: node-02
|
|
|
|
- job_name: node-03-mysql-exporter
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.103:9104
|
|
labels:
|
|
application: mysql
|
|
node: node-03
|
|
|
|
- job_name: node-01-redis-exporter
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.101:9121
|
|
labels:
|
|
application: redis
|
|
node: node-01
|
|
|
|
- job_name: node-02-redis-exporter
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.102:9121
|
|
labels:
|
|
application: redis
|
|
node: node-02
|
|
|
|
- job_name: node-03-redis-exporter
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.103:9121
|
|
labels:
|
|
application: redis
|
|
node: node-03
|
|
|
|
- job_name: node-01-node-exporter
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.101:9100
|
|
labels:
|
|
application: node
|
|
node: node-01
|
|
|
|
- job_name: node-02-node-exporter
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.102:9100
|
|
labels:
|
|
application: node
|
|
node: node-02
|
|
|
|
- job_name: node-03-node-exporter
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.1.103:9100
|
|
labels:
|
|
application: node
|
|
node: node-03
|