摘要: 一 导入模板 推荐模板ID:9719 二 验证dashboard 阅读全文
posted @ 2021-11-17 22:21 小吉猫 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 一 ICMP监控配置 1.1 修改Prometheus Server配置文件 root@prometheus-01:~# cat /usr/local/prometheus/prometheus.yml #ICMP 检测 - job_name: 'ping_status' metrics_path: 阅读全文
posted @ 2021-11-17 22:12 小吉猫 阅读(2268) 评论(0) 推荐(0) 编辑
摘要: 端口监控配置 prometheus.yml - job_name: "prot_status" metrics_path: /probe params: module: [tcp_connect] file_sd_configs: - files: - targets/port-status.yam 阅读全文
posted @ 2021-11-17 22:04 小吉猫 阅读(994) 评论(0) 推荐(0) 编辑
摘要: URL监控配置 prometheus.yml - job_name: "http_status" metrics_path: /probe params: module: [http_2xx] # Look for a HTTP 200 response. file_sd_configs: - fi 阅读全文
posted @ 2021-11-17 21:54 小吉猫 阅读(1713) 评论(0) 推荐(0) 编辑
摘要: blackbox exporter介绍 blackbox_exporter是Prometheuse官方提供的一个exporter,可以通过HTTP、HTTPS、DNS、TCP和ICMP对被监控节点进行监控和数据采集 HTTP/HTTPS:URL/API可用性检测; TCP:端口监听检测; ICMP: 阅读全文
posted @ 2021-11-17 21:08 小吉猫 阅读(1213) 评论(0) 推荐(0) 编辑
摘要: root@node-02:~# /usr/local/blackbox_exporter/blackbox_exporter --help usage: blackbox_exporter [<flags>] Flags: -h, --help #显示上下文相关的帮助(也可以尝试 --help-lo 阅读全文
posted @ 2021-11-17 21:07 小吉猫 阅读(567) 评论(0) 推荐(0) 编辑
摘要: 一 告警功能概述 Prometheus对指标的收集、存储同告警能力分属于Prometheus Server和Alertmanager连个独立的组件,前者仅负责基于告警规则生成告警通知,具体的告警操作则由后者完成; Alertmanager负责处理由客户端发来的告警通知 客户端通常是Prometheu 阅读全文
posted @ 2021-11-17 17:15 小吉猫 阅读(1443) 评论(0) 推荐(0) 编辑
摘要: 一 Cadvisor介绍 GitHub地址:https://github.com/google/cadvisor cadvisor由谷歌开源,cadvisor不仅可以搜集一台机器上所有运行的容器信息,还提供基础查询界面和http接口,方便其它组件如Prometheus进行数据抓取,cadvisor可 阅读全文
posted @ 2021-11-17 15:47 小吉猫 阅读(888) 评论(0) 推荐(0) 编辑
摘要: 添加Prometheus数据源 1. 将光标移动到侧面菜单上的齿轮图标,该图标将显示配置选项。 2. 单击数据源。数据源页面打开,显示先前为 Grafana 实例配置的数据源列表。 3. 单击添加数据源以查看所有支持的数据源的列表。 4. 通过在搜索对话框中输入名称来搜索特定数据源。或者,您可以滚动 阅读全文
posted @ 2021-11-17 15:30 小吉猫 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 一 grafana-clis使用帮助 root@k8s-deploy:~# grafana-cli --help 姓名: Grafana CLI - 一个新的 cli 应用程序 用法: grafana-cli [global options] command [command options] [a 阅读全文
posted @ 2021-11-17 00:01 小吉猫 阅读(206) 评论(0) 推荐(0) 编辑