監(jiān)控神器-普羅米修斯Prometheus的安裝

Prometheus介紹

Prometheus是由SoundCloud開發(fā)的開源監(jiān)控報(bào)警系統(tǒng)和時(shí)序列數(shù)據(jù)庫(TSDB)。Prometheus使用Go語言開發(fā),是Google BorgMon監(jiān)控系統(tǒng)的開源版本。

Prometheus架構(gòu)

image.png

下載頁面

https://prometheus.io/download/

解壓

tar -zxvf prometheus-2.33.3.linux-amd64.tar.gz

修改配置參數(shù)

vim prometheus.yml

global:
  scrape_interval:     15s
  evaluation_interval: 15s

rule_files:
  # - "first.rules"
  # - "second.rules"

scrape_configs:
  - job_name: prometheus
    static_configs:
      - targets: ['localhost:9090']

啟動服務(wù)(默認(rèn)9090端口)

./prometheus --config.file=prometheus.yml

指定端口啟動命令

nohup ./prometheus --config.file=prometheus.yml --web.listen-address=:9090 &

訪問服務(wù)

http://xxx:9090/

查看UI界面prometheus狀態(tài)為up,說明配置成功。


image.png

退出服務(wù)
查找出pid

ps -ef | grep prometheus

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容