随笔分类 - Prometheus
摘要:centos7抓取grafana图片 1、背景 想要一个CPU的使用率的日报,因此想程序直接抓取grafana的Panel生成的图片,这样不用每次都打开grafana,然后手动截图,再保存,再发日报。 谷歌了一下,发现官方有个插件叫grafana-image-renderer,能直接渲染图片,生成图
阅读全文
摘要:centos7安装Prometheus 1、下载 地址:https://prometheus.io/download/#prometheus 选择一个,然后直接下载,例如 2.37版本,下载后拷贝到centos7机器中,也可以直接在centos7中使用wget命令直接下载 wget https://
阅读全文
摘要:centos7安装node export 1、下载 地址:https://prometheus.io/download/#node_exporter 选择一个,然后直接下载,例如 1.3.1版本,下载后拷贝到centos7机器中,也可以直接在centos7中使用wget命令直接下载 wget htt
阅读全文
摘要:Prometheus学习之AlertManager报警的使用(Centos7环境) 1、下载、解压、启动 网址:Prometheus官网 例如下载0.24.0版本并启动(启动可以自己配置为服务启动) wget https://github.com/prometheus/alertmanager/re
阅读全文
摘要:centos7安装alertmanager 1、下载 地址:https://prometheus.io/download/ 例如 0.24.0版本(直接wget下载或者Windows下载好后拷贝进去Linux) wget https://github.com/prometheus/alertmana
阅读全文
摘要:Prometheus之PromQL-操作符 使用PromQL除了能够方便的按照查询和过滤时间序列以外,PromQL还支持丰富的操作符,用户可以使用这些操作符对进一步的对事件序列进行二次加工。这些操作符包括:数学运算符,逻辑运算符,布尔运算符等等。 数学运算 例如,我们可以通过指标node_memor
阅读全文
摘要:Prometheus之PromQL-基本语法 Prometheus通过指标名称(metrics name)以及对应的一组标签(labelset)唯一定义一条时间序列。指标名称反映了监控样本的基本标识,而label则在这个基本特征上为采集到的数据提供了多种特征维度。用户可以基于这些特征维度过滤,聚合,
阅读全文
摘要:Prometheus的四大指标类型 Metric类型 在上一小节中我们带领读者了解了Prometheus的底层数据模型,在Prometheus的存储实现上所有的监控样本都是以time-series的形式保存在Prometheus内存的TSDB(时序数据库)中,而time-series所对应的监控指标
阅读全文
摘要:centos7安装consul 1、在线下载consul 官网地址:https://www.consul.io/downloads 在线安装consul sudo yum install -y yum-utils && sudo yum-config-manager --add-repo https
阅读全文
摘要:centos7安装Grafana 1、下载 下载指引 :https://grafana.com/grafana/download?pg=get&plcmt=selfmanaged-box1-cta1 wget https://dl.grafana.com/enterprise/release/gra
阅读全文