您好,登錄后才能下訂單哦!
下載prometheus https://prometheus.io/download/ tar?xvfz?prometheus-*.tar.gz cd?prometheus-* mv?prometheus-*?/usr/local/prometheus
添加開機自啟動 vim??/usr/lib/systemd/system/prometheus [Unit] Description=https://prometheus.io ? [Service] Restart=on-failure ExecStart=/usr/local/prometheus/prometheus?--config.file=/usr/local/prometheus/prometheus.yml ? [Install] WantedBy=multi-user.target chmod?+x??/usr/lib/systemd/system/prometheus
systemctl??start??prometheus systemctl??enable??prometheus
瀏覽:
http://ip:9090
出現(xiàn)問題:時間不一致(如下類似)
Warning!?Detected?457.83?seconds?time?difference?between?your?browser?and?the?server.?Prometheus?relies?on?accurate?time?and?time?drift?might?cause?unexpected?query?results.
解決辦法:
我自己吧服務(wù)器時間同步至? time1.aliyun.com
ntpdate time1.aliyun.com
然后把電腦的時間也同步至time1.aliyun.com? 即可解決
l? global:全局配置
l? alerting:告警配置
l? rule_files:告警規(guī)則
l? scrape_configs:配置數(shù)據(jù)源,稱為target,每個target用job_name命名。又分為靜態(tài)配置和服務(wù)發(fā)現(xiàn)
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。