![](https://img-blog.csdnimg.cn/8444c682b4a44f0ba51b95c6fdc5fc32.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
监控
文章平均质量分 80
prometheus+n9e监控——目前我生产环境使用的监控方案。包括:虚拟机,k8s集群,容器,kafka,mysql,redis,postgre等
玄德公笔记
赠人玫瑰,手有余香。
展开
-
【夜莺监控方案】01-n9e-v5-server部署
n9e(nightingale)+prometheus 的一种监控方案,可用于监控k8s集群、容器、主机、网络、服务、端口 等,以及各种中间件:包括mysql、postgre、redis、kafka等等原创 2021-12-05 11:42:15 · 2414 阅读 · 0 评论 -
【夜莺监控方案】02-n9e-v5-agent部署
n9e(nightingale)+prometheus 的一种监控方案,可用于监控k8s集群、容器、主机、网络、服务、端口 等,以及各种中间件:包括mysql、postgre、redis、kafka等等原创 2021-12-05 11:44:43 · 1025 阅读 · 0 评论 -
【夜莺监控方案】03-容器监控(cadvisor+n9e)
n9e(nightingale)+prometheus监控容器启动的服务原创 2021-12-05 11:47:10 · 1078 阅读 · 0 评论 -
【夜莺监控方案】04-k8s集群监控(上)(kube-state-metrics+cadvisor+prometheus+n9e)
n9e(nightingale)+prometheus 的一种监控方案,可用于监控k8s集群、容器、主机、网络、服务、端口 等,以及各种中间件:包括mysql、postgre、redis、kafka等等原创 2021-12-05 12:00:26 · 1943 阅读 · 0 评论 -
【夜莺监控方案】04-k8s集群监控(下)(kube-state-metrics+cadvisor+prometheus+n9e及FAQ)
n9e(nightingale)+prometheus 的一种监控方案,可用于监控k8s集群、容器、主机、网络、服务、端口 等,以及各种中间件:包括mysql、postgre、redis、kafka等等原创 2021-12-05 12:05:23 · 2000 阅读 · 0 评论 -
【夜莺监控方案】05-监控postgre 集群(prometheuse+n9e+postgres_exporter)
n9e(nightingale)+prometheus监控postgre数据库原创 2021-12-07 17:10:23 · 1933 阅读 · 0 评论 -
【夜莺监控方案】06-监控redis集群(prometheuse+n9e+redis_exporter)
n9e(nightingale)+prometheus监控redis集群原创 2021-12-05 14:52:17 · 4063 阅读 · 0 评论 -
【夜莺监控方案】07-监控kafka(prometheus+n9e+kafka_exporter )
1. 安装kafka_exporter1.1 下载国内github加速地址 : https://hub.fastgit.org搜索 kafka_exporter 下载适合的版本(1.4.2貌似不好用,我下载的1.4.0)1.2 安装1)下载适合版本到服务器,解压缩(我解压缩在/data目录下)2)为了方便操作,在/opt 下创建一个软连接,结果如下[root@kafka-01 kafka_exporter]# ll /opt/lrwxrwxrwx 1 root root 22原创 2022-03-25 14:45:22 · 1287 阅读 · 0 评论 -
【夜莺监控方案】08-监控mysql集群(prometheuse+n9e+mysqld_exporter)
1. 安装mysqld_exporter2. 配置prometheus3. 配置n9e 图表3.1 手动配置(方法一)3.2 导入模板(方法二)4. FAQ4.1 mysql有白名单或防火墙,容器内不能访问4.2 修改mysqld_exporter启动端口原创 2022-08-03 16:17:40 · 1158 阅读 · 0 评论 -
【夜莺监控方案】09-监控服务主机存活和服务端口(ICMP/TCP/HTTP)(prometheuse+n9e+blackbox_exporter)
1. 安装 blackbox_exporter2. 配置prometheus2.1 主机存活(ICMP)2.2 TCP端口状态2.3 HTTP端口状态2.4 重启 prometheus3. 配置n9e图表3.1 手动配置(方法一)3.2 导入模板(方法二)原创 2022-08-04 20:36:34 · 1700 阅读 · 0 评论 -
【夜莺监控方案】10-报警策略-端口报警
文章目录1. 邮箱配置2. 资源管理 中配置1.2 创建端口采集(必要)3. 配置告警策略1. 邮箱配置/opt/n9e/server/etc/script[root@n9e-v5 script]# ll总用量 12-rwxr-xr-x 1 501 games 10641 12月 13 14:07 notify.pydrwxr-xr-x 2 501 games 37 12月 13 14:00 tplnotify.py 是邮箱的配置,一个Python脚本即时可以生效。修改如下:###原创 2021-12-14 11:25:58 · 2120 阅读 · 0 评论 -
【prometheuse监控方案】监控postgre集群(prometheuse+grafna+postgres_exporter)
prometheus+grafana 监控postgre原创 2021-12-07 15:24:05 · 2633 阅读 · 0 评论 -
动手写prometheus的exporter-01-Gauge(仪表盘)
1. 不带lab的Gauge1.1 定义指标语法完整示例1.2 给指标取值语法完整示例2. 带lab的Gauge2.1 定义指标语法完整示例2.2 取值语法完整示例原创 2022-08-08 21:36:52 · 617 阅读 · 0 评论 -
动手写prometheus的exporter-02-Counter(计数器)
概述1. 不带标签的Counter1.1 定义指标语法完整示例1.2 获取数据语法完整示例2. 带标签的Counter2.1 定义指标语法完整示例2.2 获取数据语法完整示例原创 2022-08-09 20:17:24 · 589 阅读 · 0 评论 -
动手写prometheus的exporter-03-HIstogram(直方图)
1. 不带标签的HIstogram语法完整示例2. 带标签的HIstogram语法完整示例原创 2022-08-22 21:02:15 · 446 阅读 · 0 评论 -
动手写prometheus的exporter-04-Summary(摘要)
1. 不带标签的Summary语法完整示例2. 带标签的Summary语法完整示例原创 2022-08-21 20:22:58 · 503 阅读 · 0 评论 -
PromQL基础语法(上)-数据类型、时序选择器、二元操作符【prometheus查询语句】
1. 数据类型1.1 Gauge(仪表盘)1.2 Counter(计数器)1.3 HIstogram(直方图)1.4 Summary(摘要)2. 时序选择器2.1 瞬时向量选择器2.2 区间向量选择器2.3 偏移修饰器- 瞬时向量的偏移修饰器- 区间向量的偏移修饰器3. 二元操作符3.1 算术操作符3.2 匹配操作符3.3 逻辑操作符3.4 优先级原创 2022-11-02 21:08:02 · 756 阅读 · 0 评论 -
PromQL基础语法(下)-聚合运算符、内置函数【prometheus查询语句】
4. 聚合运算符- 操作符- 示例(sum)- 示例(min/max)- 示例(count_values)- 示例(bottomk | topk)5. 内置函数5.1 取整- ceil() 向上取整- floor() 向下取整- round() 四舍五入5.2 限定范围- clamp() 限定取值范围- clamp_max() 限定最大值- clamp_min() 限定最小值5.3 值变化统计- changes() 区间内样本改变次数- resets() 复位统计……原创 2022-11-11 10:19:40 · 2990 阅读 · 0 评论