摘要:        
判断某个ip是否在一个网段(ip+掩码)内 大学学的计算机网络已经忘了一大半,今天接到一个需求,需要判断用户的请求ip是否在办公网网段,如果是,那么就要做出相应的提示。 一开始我以为,办公网段就只需要截取前三位就行,比如:22.3.4.6 所在网段就是22.3.4就可以。 可是安全管理员给我发的却不    阅读全文
posted @ 2025-03-28 22:41
BUG弄潮儿
阅读(96)
评论(0)
推荐(0)
        
            
        
        
摘要:        
1、prometheus配置大盘 kube-prometheus-stack 定义 dashboard https://stackoverflow.com/questions/77271449/persist-grafana-dashboard-on-kube-prometheus-and-expo    阅读全文
posted @ 2025-03-28 22:41
BUG弄潮儿
阅读(36)
评论(0)
推荐(0)
        
            
        
        
摘要:        
最近做的项目中用到了Prometheus做预警服务,其中Prometheus使用promql语言来查询。项目中用户通过UI或者自己手动输入PromQL时候是缺少一些系统参数的,所以需要在用户输入完成以后同步到Prometheus时候将这部分缺失的信息给添加回去,这里就需要修改用户写的PromQL了。    阅读全文
posted @ 2025-03-28 22:40
BUG弄潮儿
阅读(64)
评论(0)
推荐(0)
        
            
        
        
摘要:        
添加必要的依赖项 确保您的项目中包含了 SLF4J API 和具体的日志实现(例如 Logback 或 Log4j2)。在 pom.xml 中添加如下依赖项 <dependency> <groupId>com.jcraft</groupId> <artifactId>jsch</artifactId    阅读全文
posted @ 2025-03-28 22:39
BUG弄潮儿
阅读(125)
评论(0)
推荐(0)
        
            
        
        
摘要:        
创建 Service accounts 菜单路径:Administration -> Users and access -> Service accounts 访问封装 /** * https://grafana.com/docs/grafana/latest/developers/http_api    阅读全文
posted @ 2025-03-28 22:38
BUG弄潮儿
阅读(46)
评论(0)
推荐(0)
        
            
        
        
摘要:        
下载node-exporter https://github.com/prometheus/node_exporter/releases 下载ansible https://github.com/ansible/ansible/releases 启动node-exporter service文件 n    阅读全文
posted @ 2025-03-28 22:38
BUG弄潮儿
阅读(34)
评论(0)
推荐(0)
        
            
        
        
摘要:        
1.下载源码 git clone https://github.com/langgenius/dify.git 在启用业务服务之前,需要先部署 PostgreSQL / Redis / Weaviate(如果本地没有的话),可以通过以下命令启动: 依赖安装高版本的docker-compose cd     阅读全文
posted @ 2025-03-28 22:37
BUG弄潮儿
阅读(708)
评论(0)
推荐(0)
        
            
        
        
摘要:        
安装victoriametrics https://docs.victoriametrics.com/single-server-victoriametrics/ 下载地址 https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag    阅读全文
posted @ 2025-03-28 22:36
BUG弄潮儿
阅读(58)
评论(0)
推荐(0)
        
            
        
        
摘要:        
服务端操作 #服务端安装 yum install -y nfs-utils rpcbind #启动服务 并设置开启启动 systemctl start rpcbind && systemctl enable rpcbind systemctl start nfs-server && systemct    阅读全文
posted @ 2025-03-28 22:35
BUG弄潮儿
阅读(158)
评论(0)
推荐(0)
        
            
        
        
摘要:        
添加helm仓库 helm repo add vm https://victoriametrics.github.io/helm-charts/ helm repo update 搜索victoriametrics仓库 helm search repo vm/ NAME CHART VERSION     阅读全文
posted @ 2025-03-28 22:35
BUG弄潮儿
阅读(213)
评论(0)
推荐(0)
        

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号