随笔分类 -  Prometheus

摘要:转载自:https://mp.weixin.qq.com/s/dDmZaJ66tdEScCJyansyJA 需求背景 告警分析处理流程 通常我们收到 Prometheus 告警事件通知后,往往都需要登录 Alertmanager 页面查看当前激活的告警,如果需要分析告警历史数据信息,还需要登录 Pr 阅读全文
posted @ 2024-11-27 08:30 哈喽哈喽111111 阅读(482) 评论(0) 推荐(0)
摘要:基本概念 Prometheus 是一套开源的系统监控、报警、时间序列数据库的组合,最初有 SoundCloud 开发的,后来随着越来越多公司使用,于是便独立成开源项目。Alertmanager 主要用于接收 Prometheus 发送的告警信息,它支持丰富的告警通知渠道,例如邮件、微信、钉钉、Sla 阅读全文
posted @ 2024-08-20 08:57 哈喽哈喽111111 阅读(87) 评论(0) 推荐(0)
摘要:转载自:https://www.oiox.cn/index.php/archives/390/ Windows OhmGraphite 配置 由于windows_exporter无法监控温度相关的指标,那么就需要使用OhmGraphite进行监控该指标。 下载 访问 https://github.c 阅读全文
posted @ 2024-08-20 08:33 哈喽哈喽111111 阅读(26) 评论(0) 推荐(0)
摘要:转载自:https://www.oiox.cn/index.php/archives/389/ 背景 如果想使用Prometheus监控Windows主机相关参数,那么就需要在Windows系统的主机上进行安装指标收集器。 windows_exporter 是 Prometheus 官方所提供的指标 阅读全文
posted @ 2024-08-20 08:30 哈喽哈喽111111 阅读(455) 评论(0) 推荐(0)
摘要:下载地址:https://prometheus.io/download/ 官方文档地址:https://github.com/prometheus/blackbox_exporter 配置文件用法:https://github.com/prometheus/blackbox_exporter/blo 阅读全文
posted @ 2023-11-24 14:21 哈喽哈喽111111 阅读(1007) 评论(0) 推荐(0)
摘要:原文链接:http://www.xuyasong.com/?p=1925 转载自:https://mp.weixin.qq.com/s/CY0IefCF50HB7zf_LradVA 背景 在高可用 prometheus:问题集锦文章中有简单提到 Prometheus 的高可用方案,尝试了联邦、Rem 阅读全文
posted @ 2023-05-08 14:04 哈喽哈喽111111 阅读(700) 评论(0) 推荐(0)
摘要:转载自:https://www.qikqiak.com/post/monitor-external-k8s-on-prometheus/ 在实际环境中很多企业是将 Prometheus 单独部署在集群外部的,甚至直接监控多个 Kubernetes 集群,虽然不推荐这样去做,因为 Prometheus 阅读全文
posted @ 2022-06-17 15:09 哈喽哈喽111111 阅读(793) 评论(0) 推荐(0)
摘要:文章转载自:https://jishuin.proginn.com/p/763bfbd56ae4 使用 Prometheus Operator 来进行监控,在 Prometheus 高可用的章节中也手动部署了 Thanos,Prometheus Operator 中提供了 ThanosRuler 这 阅读全文
posted @ 2022-06-08 11:51 哈喽哈喽111111 阅读(952) 评论(0) 推荐(0)
摘要:具体参考网址:https://www.cnblogs.com/sanduzxcvbnm/p/16291296.html 本章用到的yaml文件地址:https://files.cnblogs.com/files/sanduzxcvbnm/operator_yaml.zip?t=1654593400 阅读全文
posted @ 2022-06-07 17:15 哈喽哈喽111111 阅读(3520) 评论(2) 推荐(0)
摘要:文章转载自:https://www.kococ.cn/20210302/cid=697.html 一、问题描述 在部署 kube-prometheus 到 kubernetes 集群中总会遇到一个问题,当 pod 都正常运行的时候,却发现 kube-controller-manager 和 kube 阅读全文
posted @ 2022-06-07 11:49 哈喽哈喽111111 阅读(900) 评论(0) 推荐(0)
摘要:安装 前面的章节中我们学习了用自定义的方式来对 Kubernetes 集群进行监控,基本上也能够完成监控报警的需求了。但实际上对上 Kubernetes 来说,还有更简单方式来监控报警,那就是 Prometheus Operator。Prometheus Operator 为监控 Kubernete 阅读全文
posted @ 2022-05-20 09:59 哈喽哈喽111111 阅读(913) 评论(0) 推荐(0)
摘要:使用 Kubernetes 进行容器编排的主要优点之一是,它可以非常轻松地对我们的应用程序进行水平扩展。Pod 水平自动缩放(HPA)可以根据 CPU 和内存使用量来扩展应用,前面讲解的 HPA 章节 我们只演示了基于 CPU 的自动缩放,在更复杂的情况下,我们可能还需要基于内存或者基于某些自定义的 阅读全文
posted @ 2022-05-20 09:35 哈喽哈喽111111 阅读(438) 评论(0) 推荐(0)
摘要:前面我们已经学习了 Prometheus 的使用,了解了基本的 PromQL 语句以及结合 Grafana 来进行监控图表展示,通过 AlertManager 来进行报警,这些工具结合起来已经可以帮助我们搭建一套比较完整的监控报警系统了,但是也仅仅局限于测试环境,对于生产环境来说则还有许多需要改进的 阅读全文
posted @ 2022-05-18 15:40 哈喽哈喽111111 阅读(651) 评论(0) 推荐(0)
摘要:Prometheus 通过指标名称(metrics name)以及对应的一组标签(label)唯一定义一条时间序列。指标名称反映了监控样本的基本标识,而 label 则在这个基本特征上为采集到的数据提供了多种特征维度。用户可以基于这些特征维度过滤、聚合、统计从而产生新的计算后的一条时间序列。 Pro 阅读全文
posted @ 2022-05-18 14:34 哈喽哈喽111111 阅读(410) 评论(0) 推荐(0)
摘要:在早期的版本中 Kubernetes 提供了 heapster、influxDB、grafana 的组合来监控系统,在现在的版本中已经移除掉了 heapster,现在更加流行的监控工具是 Prometheus,Prometheus 是 Google 内部监控报警系统的开源版本,是 Google SR 阅读全文
posted @ 2022-05-18 14:07 哈喽哈喽111111 阅读(1206) 评论(0) 推荐(0)
摘要:一般 Java 集成 Prometheus 监控指标有两种方式。一种是依赖中引入,另外一种是通过agent执行。 依赖引入 <!-- The client --> <dependency> <groupId>io.prometheus</groupId> <artifactId>simpleclie 阅读全文
posted @ 2022-04-25 12:02 哈喽哈喽111111 阅读(1134) 评论(0) 推荐(0)
摘要:系统基本信息 Linux Servers: Exporter https://github.com/prometheus/node_exporter Dashboard https://grafana.com/grafana/dashboards/1860 Windows Servers: Expo 阅读全文
posted @ 2022-04-25 11:12 哈喽哈喽111111 阅读(218) 评论(0) 推荐(0)
摘要:当我们使用 Traefik 作为 Kubernetes 的 Ingress 控制器的时候,我们自然也非常有必要对其进行监控。本文我们将探讨如何使用 Prometheus 和 Grafana 从 Traefik 提供的 metrics 指标中进行监控报警。 安装 首先你需要一个可以访问的 Kubern 阅读全文
posted @ 2021-12-30 17:52 哈喽哈喽111111 阅读(1234) 评论(0) 推荐(0)
摘要:官网下载地址:https://prometheus.io/download/ 选择对应的系统版本 ![](https://img2020.cnblogs.com/blog/794174/202112/794174-20211215090905794-1074351462.png) 官网提供的是压缩包 阅读全文
posted @ 2021-12-15 09:17 哈喽哈喽111111 阅读(1352) 评论(0) 推荐(0)
摘要:以 Prometheus为例: emqx_prometheus 支持将数据推送至 Pushgateway 中,然后再由 Promethues Server 拉取进行存储。 注意:emqx_prometheus不支持 Prometheus 的 Pull 操作。 安装pushgateway docker 阅读全文
posted @ 2021-12-13 17:23 哈喽哈喽111111 阅读(751) 评论(0) 推荐(0)