美文网首页
监控神器-普罗米修斯Prometheus的安装

监控神器-普罗米修斯Prometheus的安装

作者: 代码足迹 | 来源:发表于2022-02-21 11:06 被阅读0次

Prometheus介绍

Prometheus是由SoundCloud开发的开源监控报警系统和时序列数据库(TSDB)。Prometheus使用Go语言开发,是Google BorgMon监控系统的开源版本。

Prometheus架构

image.png

下载页面

https://prometheus.io/download/

解压

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

修改配置参数

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']

启动服务(默认9090端口)

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

指定端口启动命令

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

访问服务

http://xxx:9090/

查看UI界面prometheus状态为up,说明配置成功。


image.png

退出服务
查找出pid

ps -ef | grep prometheus

相关文章

网友评论

      本文标题:监控神器-普罗米修斯Prometheus的安装

      本文链接:https://www.haomeiwen.com/subject/nhnblrtx.html