上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 1.cpu告警规则 groups: - name: hostStatsAlert rules: - alert: hostCpuUsageAlert # 正则匹配job中的node_exporter值,这里.匹配了单个数字 expr: (1-(avg(irate(node_cpu_seconds_t 阅读全文
posted @ 2023-03-16 11:37 冷夜O 阅读(31) 评论(0) 推荐(0)
摘要: 1.完全匹配 PromQL 支持使用 = 和!= 两种完全匹配模式 =:匹配等于node_exporter1的实例对象 !=:显示除开node_exporter1的实例对象 2.正则匹配 正则匹配分正向匹配和反向匹配 正向匹配:使用 label=~regx 表示选择那些标签符合正则表达式 反向匹配: 阅读全文
posted @ 2023-03-16 11:07 冷夜O 阅读(454) 评论(0) 推荐(0)
摘要: 一.prometheus二进制编译安装 1.关闭防火墙(或放通具体应用端口) systemctl stop firewalld 2.下载prometheus安装包 官网:https://github.com/prometheus/prometheus/releases/download/v2.42. 阅读全文
posted @ 2023-03-12 19:03 冷夜O 阅读(248) 评论(0) 推荐(0)
摘要: 场景:修改了服务器的ip,告警主机都可以监控但是仪表板无内容显示,并出现告警 问题分析:要修改前端$ZBX_SERVER 变量的值,修改为你新ip 进入到vim /etc/zabbix/web/ vim zabbix.conf.php 如果找不到 用find命令 全文搜索 zabbix.conf.p 阅读全文
posted @ 2023-03-10 12:00 冷夜O 阅读(212) 评论(0) 推荐(0)
摘要: 1.临时修改,重启失效 hostname test 查看命令 hostname 2.永久修改,重启不失效 hostnamectl set-hostname test 查看命令 hostname 阅读全文
posted @ 2023-03-09 21:48 冷夜O 阅读(44) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2023-03-06 21:12 冷夜O 阅读(4) 评论(0) 推荐(0)
摘要: 本教程已删除python3为例 linux卸载python第一步whereis python3 | xargs rm -rfv 第二步find / -name *python3* | xargs rm -rfv 第三步卸载pipwhereis pip3 | xargs rm -rfv 第四步find 阅读全文
posted @ 2023-03-06 16:54 冷夜O 阅读(728) 评论(0) 推荐(0)
摘要: 一.配置 EPEL 源 sudo yum install -y epel-release sudo yum -y update 二、安装 Nginx sudo yum install -y nginx 安装成功后,默认的网站目录为: /usr/share/nginx/html 默认的配置文件为:/e 阅读全文
posted @ 2023-03-05 23:55 冷夜O 阅读(23) 评论(0) 推荐(0)
摘要: 常用参数说明 -n 发送的包数量 -c 并发的线程 ab -n 10000 -c 3 https://www.baidu.com/ 阅读全文
posted @ 2023-03-05 17:32 冷夜O 阅读(27) 评论(0) 推荐(0)
摘要: 1.通过创建软链接,修改为亚洲上海 ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 2.通过给登录时的环境添加变量 例如 vi /etc/profile ,添加如下命令 export TZ='Asia/Shanghai' 3.如何手动修 阅读全文
posted @ 2023-03-05 01:39 冷夜O 阅读(71) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页