添加 docker-compose/prometheus/promtheus/config/prometheus.yml
This commit is contained in:
30
docker-compose/prometheus/promtheus/config/prometheus.yml
Normal file
30
docker-compose/prometheus/promtheus/config/prometheus.yml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
global:
|
||||||
|
scrape_interval: 15s
|
||||||
|
|
||||||
|
rule_files:
|
||||||
|
- "/etc/prometheus/rules/*.yaml"
|
||||||
|
|
||||||
|
scrape_configs:
|
||||||
|
- job_name: 'node'
|
||||||
|
file_sd_configs:
|
||||||
|
- files:
|
||||||
|
- /etc/prometheus/targets/node.yaml
|
||||||
|
refresh_interval: 5s
|
||||||
|
relabel_configs:
|
||||||
|
- target_label: job
|
||||||
|
replacement: 'node'
|
||||||
|
- job_name: 'cadvisor'
|
||||||
|
file_sd_configs:
|
||||||
|
- files:
|
||||||
|
- /etc/prometheus/targets/cadvisor.yaml
|
||||||
|
refresh_interval: 5s
|
||||||
|
- job_name: 'mysql'
|
||||||
|
file_sd_configs:
|
||||||
|
- files:
|
||||||
|
- /etc/prometheus/targets/mysql.yaml
|
||||||
|
refresh_interval: 5s
|
||||||
|
|
||||||
|
alerting:
|
||||||
|
alertmanagers:
|
||||||
|
- static_configs:
|
||||||
|
- targets: ["10.0.141.200:9093"]
|
||||||
Reference in New Issue
Block a user