随笔分类 - prometheus
摘要:原文链接: www.xuyasong.com Contents Contents [hide] 1 背景 2 实际需求 3 thanos 架构 4 组件与配置 4.1 第 1 步:确认已有的 prometheus 4.2 第 2 步:部署 sidecar 组件 4.3 第 3 步:部署 query
阅读全文
摘要:--storage.tsdb.retention 该参数决定何时删除旧数据,默认是15天在启动脚本里修改--storage.tsdb.retention=90d可以延长,或者启动时带上这个参数即可。
阅读全文
摘要:http://t.zoukankan.com/shoufu-p-14110485.html 主机和硬件监控 可用内存指标 主机中可用内存容量不足 10% - alert: HostOutOfMemory expr: node_memory_MemAvailable_bytes / node_memo
阅读全文
摘要:一、pushgateway的作用 传统监控软件如Zabbix通常都建议使用push的方式来由客户端推送数据给服务端,这样可以减轻服务端压力。但是这样也有个弊端就是配置更为复杂,需要在每个agent上都配置server的地址才可以感知到server的存在。虽然Prometheus默认已经是采用pull
阅读全文
摘要:https://www.cnblogs.com/Pigs-Will-Fly/p/13361527.html https://www.cnblogs.com/anay/p/11871018.html
阅读全文
摘要:https://blog.51cto.com/u_12529218/2671681 参考https://soulchild.cn/2168.html 网上搜了好多好多的自定义报警模板,如果用百度搜索,基本上都是千遍一律的那个,而且还说的不明不白的,如果想要搞明白就得收费,对此很是反感,就不能无私奉献
阅读全文
摘要:二、下载并安装Prometheus 在终端下: wget https://github.com/prometheus/node_exporter/releases/download/v0.17.0/node_exporter-0.17.0.linux-amd64.tar.gz tar xvf nod
阅读全文
摘要:Prometheus断电后启动异常 Error on ingesting samples that are too old or are too far into the future 国庆假期回来后,发现 Prometheus 服务启动后没数据,查看日志 level=warn ts=2020-10
阅读全文
摘要:nohup ./node_exporter --collector.systemd --collector.systemd.unit-whitelist=(docker|sshd).service &
阅读全文
摘要:http://t.zoukankan.com/shoufu-p-14110485.html 转载于https://awesome-prometheus-alerts.grep.to/rules#host-and-hardware Collection of alerting rules AlertM
阅读全文
摘要:Prometheus 监控 Redis cluster,其实套路都是一样的,使用 exporter。exporter 负责采集指标,通过 http 暴露给 Prometheus 拉取。granafa 则通过这些指标绘图展示数据。Prometheus 收集的数据还会根据你设置的告警规则判断是否要发送给
阅读全文
摘要:https://awesome-prometheus-alerts.grep.to/rules#host-and-hardware
阅读全文
摘要:在这篇文章中,你将学习sprint boot如何整合外部监控系统Prometheus和图表解决方案Grafana。 在这篇文章的末尾,你将在自己本地电脑上建立一个Prometheus和Grafana仪表盘,用来可视化监控Spring Boot应用产生的所有metrics。 Prometheus Pr
阅读全文
摘要:prometheus监控系统的的报警规则是在prometheus这个组件完成配置的。 prometheus支持2种类型的规则,记录规则和报警规则, 记录规则主要是为了简写报警规则和提高规则复用的, 报警规则才是真正去判定是否需要报警的规则。 报警规则中是可以使用记录规则的。 提供下我整理的node-
阅读全文
摘要:一、Prometheus介绍之前已经详细介绍了Kubernetes集群部署篇,今天这里重点说下Kubernetes监控方案-Prometheus+Grafana。Prometheus(普罗米修斯)是一个开源系统监控和警报工具,最初是在SoundCloud建立的。自2012年成立以来,许多公司和组织都
阅读全文
摘要:前言 本文介绍使用influxdb 作为prometheus持久化存储和使用mysql 作为grafana 持久化存储的安装方法 一 安装go环境 如果自己有go环境可以自主编译remote_storage_adapter插件,安装go环境目的就是为了获得此插件,如果没有go环境可以使用我分享的连接
阅读全文
摘要:AlertManager下载 https://prometheus.io/download/ 解压 添加配置文件test.yml,配置收发邮件邮箱 参考配置: 更多配置参考alertmanager包中的simple.yml 添加报警规则 prometheus targets 监控报警参考配置(nod
阅读全文
摘要:https://www.kancloud.cn/huyipow/prometheus/527092 https://songjiayang.gitbooks.io/prometheus/content/demo/target.html 创建 monitoring namespaces apiVers
阅读全文
摘要:prometheus它是一个主动拉取的数据库,在K8S中应该展示图形的grafana数据实例化要保存下来,使用分布式文件系统加动态PV,但是在本测试环境中使用本地磁盘,安装采集数据的agent使用DaemonSet来部署,DaemonSet的特性就是在每个node上部署一个服务进程,这一切都是自动的
阅读全文