会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
littlevigra
用个简单例子来让自己清楚工作过程
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
18
19
20
21
22
23
24
25
26
···
70
下一页
2020年10月3日
kibana-timelion-QPS案例 - 容器日志收集方案
摘要: 1.timelion .es(q='status:200',index=filebeat-testindex*,timefield=@timestamp,metric=count).label('200'),.es(q='status:502',index=filebeat-testindex*,t
阅读全文
posted @ 2020-10-03 17:01 littlevigra
阅读(1308)
评论(1)
推荐(0)
2020年10月1日
redis 主从复制如何实现的? redis 的集群模式如何实现? redis 的 key 是如何寻址的?
摘要: 1.redis 主从复制如何实现的? 1.1 连接建立阶段 1.2 数据同步阶段 1.3命令传播阶段 是指将一台Redis服务器的数据,复制到其他的Redis服务器。前者称为主节点(master),后者称为从节点(slave);数据的复制是单向的,只能由主节点到从节点。 需要注意,主从复制的开启,完
阅读全文
posted @ 2020-10-01 22:49 littlevigra
阅读(501)
评论(0)
推荐(0)
变量 单引号 企业微信机器人-告警-拨测端口
摘要: 1.拨测服务端口 [root@VM_0_111_centos shell]# cat check_http_code1.sh #!/bin/bash while true do cat input1.txt| while read line do return_Code=`$line ;echo $
阅读全文
posted @ 2020-10-01 16:31 littlevigra
阅读(649)
评论(0)
推荐(0)
2020年9月20日
flask - exporter -gauge - python - 请求时间显示 + 自定义监控-pushgateway-flask
摘要: 1.显示请求使用时间-使用gauge显示每次的请求时间 [root@VM_0_111_centos exporters]# cat request_time.py |egrep -v '^#|^$' import prometheus_client from prometheus_client im
阅读全文
posted @ 2020-09-20 22:28 littlevigra
阅读(411)
评论(0)
推荐(0)
2020年9月19日
用python编写exporter监控接口访问数量+错误率+响应时间
摘要: 1.编写exporter import prometheus_client from prometheus_client import Gauge,start_http_server,Counter import pycurl import time import threading from io
阅读全文
posted @ 2020-09-19 21:40 littlevigra
阅读(1528)
评论(0)
推荐(0)
2020年9月17日
prometheus pushgateway-简单-脚本-自定义 - EOF 运维神器 federate + 多instances聚合
摘要: 0.pushgateway的安装和配置 tar -zxf pushgateway-1.2.0.linux-amd64.tar.gz ./pushgateway & 在Prometheus添加配置 - job_name: 'node_111' static_configs: - targets: ['
阅读全文
posted @ 2020-09-17 22:14 littlevigra
阅读(557)
评论(4)
推荐(0)
2020年8月27日
数据库大小写导致程序找不到表起不来 - create 建库
摘要: 1.腾讯云数据库默认大小写不敏感 mysql> show variables like "%case%"; + + + | Variable_name | Value | + + + | lower_case_file_system | ON | | lower_case_table_names |
阅读全文
posted @ 2020-08-27 10:10 littlevigra
阅读(308)
评论(0)
推荐(0)
2020年8月26日
tomcat日志写入log4j.log tomcat项目uri
摘要: 1.<!--<appender-ref ref="filelog" />--> 2.<appender-ref ref="filelog" /> 1.tomcat项目uri自定义 ls /opt/application/tomcat/campus_machine/conf/Catalina/loca
阅读全文
posted @ 2020-08-26 16:29 littlevigra
阅读(243)
评论(0)
推荐(0)
2020年8月23日
prometheus服务发现 + Prometheus 查询说明 + 正则模糊查询
摘要: 0.数据抓取的生命周期 1.通过文件发现 - job_name: node file_sd_configs: - targets/nodes/*.json reflesh_interval: 5m 2.添加标签 cat ./node/node.json[{"targets":["10.0.0.111
阅读全文
posted @ 2020-08-23 14:45 littlevigra
阅读(3464)
评论(0)
推荐(0)
2020年8月22日
企业微信机器人-监控磁盘和应用可用率-内存CPU
摘要: 1.每10分钟执行一次 */10 * * * * /opt/shell/check_disk.sh 2.脚本内容 for i in `cat /opt/shell/hosts` do # echo $i sys=`ssh $i "df -h |grep '\/$'"` #echo $sys sysc
阅读全文
posted @ 2020-08-22 21:39 littlevigra
阅读(531)
评论(0)
推荐(0)
上一页
1
···
18
19
20
21
22
23
24
25
26
···
70
下一页
公告