您好,登錄后才能下訂單哦!
1.配置文件(自動發現)
[root@zabbix-proxy?prometheus]#?cat?prometheus.yml #?my?global?config global: ??scrape_interval:?????15s?#?Set?the?scrape?interval?to?every?15?seconds.?Default?is?every?1?minute. ??evaluation_interval:?15s?#?Evaluate?rules?every?15?seconds.?The?default?is?every?1?minute. ??#?scrape_timeout?is?set?to?the?global?default?(10s). #?Alertmanager?configuration alerting: ??alertmanagers: ??-?static_configs: ????-?targets: ??????#?-?alertmanager:9093 #?Load?rules?once?and?periodically?evaluate?them?according?to?the?global?'evaluation_interval'. rule_files: ??#?-?"first_rules.yml" ??#?-?"second_rules.yml" #?A?scrape?configuration?containing?exactly?one?endpoint?to?scrape: #?Here?it's?Prometheus?itself. scrape_configs: ??#?The?job?name?is?added?as?a?label?`job=<job_name>`?to?any?timeseries?scraped?from?this?config. ??-?job_name:?'prometheus' ????file_sd_configs: ??????-?files:?['/usr/local/prometheus/sd_config/*.yml'] ????????refresh_interval:?5s [root@zabbix-proxy?prometheus]#
2. prometheus 軟加載配置文件
kill??-hup???pid
3.prometheus 校驗配置文件
[root@zabbix-proxy?prometheus]#?/usr/local/prometheus/promtool????check?config??/usr/local/prometheus/prometheus.yml Checking?/usr/local/prometheus/prometheus.yml ??SUCCESS:?0?rule?files?found [root@zabbix-proxy?prometheus]#
4.查看被軟加載(自動發現)的配置文件
[root@zabbix-proxy?sd_config]#?pwd /usr/local/prometheus/sd_config [root@zabbix-proxy?sd_config]#?cat?prometheus-server.yml? -?labels: ????service:?prometheus ????idc:?su ????project:?monitor ??targets: ??-?192.168.249.11:9090 [root@zabbix-proxy?sd_config]#
5.同一類項目
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。