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

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容