栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

prometheus 监控告警安装与设置

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

prometheus 监控告警安装与设置

什么是Prometheus?
Prometheus (普罗米修斯)是由 SoundCloud开发的开源监控报警系统和时序列数据库 。

Prometheus的特点

  • 多维度数据模型。 灵活的查询语言。
  • 不依赖分布式存储,单个服务器节点是自主的。
  • 通过基于HTTP的pull方式采集时序数据。
  • 可以通过中间网关进行时序列数据推送。
  • 通过服务发现或者静态配置来发现目标服务对象。
  • 支持多种多样的图表和界面展示,比如Grafana等。

官网地址:

https://prometheus.io/

基本原理
Prometheus的基本原理是通过HTTP协议周期性抓取被监控组件的状态,任意组件只要提供对应的HTTP接口就可以接入监控。

架构图



安装prometheus
官网下载,解压即可使用

wget https://github.com/prometheus/prometheus/releases/download/v2.30.3/prometheus-2.30.3.linux-amd64.tar.gz

配置文件:

vi  prometheus.yml

启动prometheus

./prometheus &

prometheus 加到系统服务

# vi /etc/systemd/system/prometheus.service

[Unit]
Description=Prometheus Monitoring System
documentation=Prometheus Monitoring System

[Service]
ExecStart=/data/app/prometheus/prometheus --config.file=/data/app/prometheus/prometheus.yml --web.listen-address=:9080

[Install]
WantedBy=multi-user.target
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/313262.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号