您好,登錄后才能下訂單哦!
下載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
出現問題:時間不一致(如下類似)
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.
解決辦法:
我自己吧服務器時間同步至? time1.aliyun.com
ntpdate time1.aliyun.com
然后把電腦的時間也同步至time1.aliyun.com? 即可解決
l? global:全局配置
l? alerting:告警配置
l? rule_files:告警規則
l? scrape_configs:配置數據源,稱為target,每個target用job_name命名。又分為靜態配置和服務發現
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。