2022-09-08 01:27:05 +08:00
|
|
|
#more prometheus-compose.yml
|
|
|
|
|
global:
|
|
|
|
|
scrape_interval: 15s
|
|
|
|
|
evaluation_interval: 15s
|
2022-09-09 01:10:06 +08:00
|
|
|
external_labels:
|
|
|
|
|
monitor: 'openIM-monitor'
|
2022-09-08 01:27:05 +08:00
|
|
|
|
|
|
|
|
scrape_configs:
|
|
|
|
|
- job_name: 'prometheus'
|
|
|
|
|
static_configs:
|
2022-09-08 12:29:44 +08:00
|
|
|
- targets: ['localhost:9091']
|
2022-09-09 01:10:06 +08:00
|
|
|
|
2022-09-08 01:27:05 +08:00
|
|
|
- job_name: 'openIM-server'
|
|
|
|
|
static_configs:
|
2022-09-09 01:10:06 +08:00
|
|
|
- targets: ['localhost:10006']
|
|
|
|
|
metrics_path: /cms/prometheus/metrics
|
|
|
|
|
labels:
|
|
|
|
|
group: 'cms-api'
|
|
|
|
|
- targets: ['localhost:21400']
|
|
|
|
|
metrics_path: /metrics
|
|
|
|
|
labels:
|
|
|
|
|
group: 'msg-transfer'
|
|
|
|
|
|
|
|
|
|
|
2022-09-08 12:29:44 +08:00
|
|
|
- job_name: 'node'
|
|
|
|
|
scrape_interval: 8s
|
|
|
|
|
static_configs:
|
|
|
|
|
- targets: ['localhost:9100']
|
2022-09-08 01:27:05 +08:00
|
|
|
|