|
|
|
@ -22,11 +22,17 @@ scrape_configs:
|
|
|
|
|
static_configs: |
|
|
|
|
- targets: ['172.30.0.90:9090'] #填写prometheus服务ip:端口 |
|
|
|
|
# 监控 linux |
|
|
|
|
- job_name: linux |
|
|
|
|
- job_name: linux-ops |
|
|
|
|
static_configs: |
|
|
|
|
- targets: ['172.30.0.93:9100'] #填写node-exporter的docker服务ip:端口或者宿主机ip:映射的端口 |
|
|
|
|
labels: |
|
|
|
|
instance: localhost:linux #实例名称或ip |
|
|
|
|
# 监控 linux |
|
|
|
|
- job_name: linux-app |
|
|
|
|
static_configs: |
|
|
|
|
- targets: [ '172.30.0.93:9100' ] #填写node-exporter的docker服务ip:端口或者宿主机ip:映射的端口 |
|
|
|
|
labels: |
|
|
|
|
instance: localhost:linux #实例名称或ip |
|
|
|
|
# 监控 mysql |
|
|
|
|
- job_name: 'mysql' |
|
|
|
|
static_configs: |
|
|
|
|