随笔分类 -  监控

摘要:内容来自: https://yunlzheng.gitbook.io/prometheus-book/parti-prometheus-ji-chu/promql 一、理解时间序列 1、理解时间序列 Prometheus会将所有采集到的样本数据以时间序列(time-series)的方式保存在内存数据 阅读全文
posted @ 2020-02-17 17:33 _幸会 阅读(621) 评论(0) 推荐(0) 编辑
摘要:参考: https://www.cnblogs.com/xiao987334176/p/9933963.html 一、Pushgateway介绍 Pushgateway是一个独立的服务,Pushgateway位于应用程序发送指标和Prometheus服务器之间。Pushgateway接收指标,然后将 阅读全文
posted @ 2020-02-11 17:18 _幸会 阅读(3304) 评论(0) 推荐(0) 编辑
摘要:一、远端探测介绍 监控应用程序的两种主要方法:探测和内省(例:node_exporter)。 探测监视应用程序的外部,可以查询应用程序的外部特征:是否响应开放端口上的轮询并返回正确的数据或响应代码?eg:执行ICMP ping或echo检查并确认是否收到了响应。这种类型的探测也称为黑盒探测,将内部应 阅读全文
posted @ 2020-02-11 12:56 _幸会 阅读(4673) 评论(0) 推荐(0) 编辑
摘要:一、prometheus告警管理介绍 prometheus的告警管理分为两部分。通过在prometheus服务端设置告警规则, Prometheus服务器端产生告警向Alertmanager发送告警。 然后,Alertmanager管理这些告警,包括静默,抑制,聚合以及通过电子邮件,邮件、微信、钉钉 阅读全文
posted @ 2020-02-10 15:34 _幸会 阅读(6901) 评论(0) 推荐(0) 编辑
摘要:官方文档:https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config 一、概述 手动配置监控目标不适合大批量的监控节点,尤其是kubernetes。 prometheus 通过服务发现 阅读全文
posted @ 2020-02-07 15:14 _幸会 阅读(1753) 评论(0) 推荐(0) 编辑
摘要:一、查询持续性 到目前为止,我们只是在表达式浏览器中运行查询。虽然查看该查询的输出很方便,但结果仍然是临时存储在Prometheus服务器上,我们可以通过以下三种方式使查询持久化: * 记录规则:根据查询创建新指标 * 报警规则:从查询生成警报 * 可视化:使用Grafana等仪表板可视化查询 记录 阅读全文
posted @ 2020-02-07 11:18 _幸会 阅读(1196) 评论(0) 推荐(0) 编辑
摘要:PromQL常用函数:https://prometheus.io/docs/prometheus/latest/querying/functions/ PromQL参考文档:https://yunlzheng.gitbook.io/prometheus-book/parti-prometheus-j 阅读全文
posted @ 2020-02-07 11:04 _幸会 阅读(3326) 评论(0) 推荐(0) 编辑
摘要:一、概述标签Label的使用 通过重新标记,你可以控制、管理并标准化环境中的指标。 重新标记操作一般常见的情况:1. 删除不必要的指标。2. 从指标中删除敏感或不需要的标签。3. 添加、编辑或者修改指标的标签值或者标签格式。 prometheus 从数据源拉取数据后,会对原始数据进行编辑;其中 me 阅读全文
posted @ 2020-02-06 17:33 _幸会 阅读(1236) 评论(0) 推荐(0) 编辑
摘要:参考文档:https://prometheus.io/docs/prometheus/latest/getting_started/ 一、使用docker部署prometheus [root@node1 ~]# docker search prometheus [root@node1 ~]# doc 阅读全文
posted @ 2020-02-06 09:47 _幸会 阅读(796) 评论(0) 推荐(0) 编辑
摘要:官方网站:https://prometheus.io/docs/prometheus/latest/getting_started/ 参考:https://www.cnblogs.com/weidongliu/p/11021622.html 一、监控概述 1、监控概述 监控是度量和管理技术系统的工具 阅读全文
posted @ 2020-02-06 09:38 _幸会 阅读(1092) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示