03 2023 档案
摘要:{{ define "email.to.html" }} {{ range .Alerts }} start <br> 告警程序: prometheus_alert <br> 告警级别: {{ .Labels.severity }} 级 <br> 告警类型: {{ .Labels.alertname
阅读全文
摘要:node_exporter是Prometheus的一个扩展程序,也是通过go语言编写,同样是开箱即食,主要用来采集服务器上的数据(CPU、内存等等) 主机Prometheus可以通过部署在客户端的node_exporter拉取到数据,只需要在Prometheus.yml里面添加一个job就可以了。
阅读全文
摘要:1、当你使用docker容器的时候有可能出现以下情况:IPv4转发已禁用。网络是行不通的。是因为IPv4转发被禁用了,只需要开启就可以了。 [root@zheng prometheus]# docker run -d -p 9090:9090 -v /opt/prometheus/prometheu
阅读全文
摘要:利用Shell 测试用例时需要检测 url 的状态是否为 200,如果是200则正常,404/500则出现问题,需要检查。 $ curl -sIL -w "%{http_code}\n" -o /dev/null https://baidu.com 200 指令解释: -A/--user-agent
阅读全文
摘要:第一步:进入数据库服务器;这里以Linux 为例; 停止数据库服务,命令:systemctl stop mysql 查看服务是否存在:ps -ef | grep mysql 第二步:找到my.cnf(windows是my.ini)配置文件; 编辑配置文件: vi /etc/my.cnf点击字母 i
阅读全文