prometheus+grafana企業(yè)級(jí)監(jiān)控項(xiàng)目實(shí)戰(zhàn)課程2022最新版
配置prometheus路徑下的prometheus.yml文件,我們可以在global中配置包括prometheus抓取數(shù)據(jù)、驗(yàn)證rule的時(shí)間間隔;在rule_files中配置rule_file的地址;scrape_configs中設(shè)置數(shù)據(jù)源。
global:
?# How frequently to scrape targets by default.
?[ scrape_interval: <duration> | default = 1m ]
?# How long until a scrape request times out.
?[ scrape_timeout: <duration> | default = 10s ]
?# How frequently to evaluate rules.
?[ evaluation_interval: <duration> | default = 1m ]
?# The labels to add to any time series or alerts when communicating with
?# external systems (federation, remote storage, Alertmanager).
標(biāo)簽: