自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 Prometheus监控多K8S集群方式

3 solutions to achieve this:useprometheus federation. This will allow you to have a central prometheus server that will scrape samples from other prometheus servers. useremote_write configuration. This will allow you to send your samples to a remote ...

2022-05-19 17:10:56 1164 1

转载 Shell分析日志文件

1、查看有多少个IP访问:awk '{print $1}' log_file|sort|uniq|wc -l2、查看某一个页面被访问的次数:grep "/index.php" log_file | wc -l3、查看每一个IP访问了多少个页面:awk '{++S[$1]} END {for (a in S) print a,S[a]}' log_file > log.txtsort -n -t ' ' -k 2 log.txt 配合sort进一步排序4、将每个IP访问的页.

2022-05-13 12:04:36 225

原创 自动检测公网ip可用性并替换不可用的

#!/bin/shlog_file=/home/infra_li.jun/eip_vpn/EIP_replace.logtfstate=/home/infra_li.jun/eip_vpn/terraform.tfstateipfile=/home/infra_li.jun/eip_vpn/iplistmailfile=/home/infra_li.jun/eip_vpn/mailfile.txtecho "" >> $log_fileecho `date` >> .

2021-05-28 13:26:48 255

原创 快速比较两列字符串

快速比较两列字符串,过滤出第一列有而第二列没有的while read line2do mark=0 while read line3 do if [ $line2 == $line3 ] ; then echo "$line2" >> result1.log mark=1 fi done < list3 i

2021-05-28 13:17:27 153

原创 python批量修改远程VM配置

import paramiko #paramiko lib for remote ssh connection cmd_linefeed = "sudo sh -c 'echo >> /etc/ssh/sshd_config'" #linefeed 文件末尾追加换行 cmd_modify_sshd = "echo 'Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@ope...

2021-05-11 14:36:35 120

原创 k8s ingress controller

k8s ingress controller相当于ALB,端口都在controller里设置好,ingress相当于监听器,svc什么的是后端,相当于target group?

2021-04-28 14:31:01 172

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除