摘要: 一、部署流程 1、研发push到github代码库 2、Jenkins 构建,pull git代码 使用maven进行编译打包 3、打包生成的代码,生成一个新版本的镜像,push到本地docker仓库harbor 4、发布,测试机器 pull 新版本的镜像,并删除原来的容器,重新运行新版本镜像。 二 阅读全文
posted @ 2021-04-28 20:43 BUG弄潮儿 阅读(703) 评论(0) 推荐(0)
摘要: Jenkins 是什么? Jenkins 是一个可扩展的持续集成引擎 主要用于: 持续、自动地构建/测试软件项目。 监控一些定时执行的任务 Jenkins 拥有的特性包括: 易于安装-只要把jenkins.war部署到servlet容器,不需要数据库支持 易于配置-所有配置都是通过其提供的web界面 阅读全文
posted @ 2021-04-04 20:12 BUG弄潮儿 阅读(128) 评论(0) 推荐(0)
摘要: 判断某个ip是否在一个网段(ip+掩码)内 大学学的计算机网络已经忘了一大半,今天接到一个需求,需要判断用户的请求ip是否在办公网网段,如果是,那么就要做出相应的提示。 一开始我以为,办公网段就只需要截取前三位就行,比如:22.3.4.6 所在网段就是22.3.4就可以。 可是安全管理员给我发的却不 阅读全文
posted @ 2025-03-28 22:41 BUG弄潮儿 阅读(89) 评论(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弄潮儿 阅读(33) 评论(0) 推荐(0)
摘要: 最近做的项目中用到了Prometheus做预警服务,其中Prometheus使用promql语言来查询。项目中用户通过UI或者自己手动输入PromQL时候是缺少一些系统参数的,所以需要在用户输入完成以后同步到Prometheus时候将这部分缺失的信息给添加回去,这里就需要修改用户写的PromQL了。 阅读全文
posted @ 2025-03-28 22:40 BUG弄潮儿 阅读(57) 评论(0) 推荐(0)
摘要: 添加必要的依赖项 确保您的项目中包含了 SLF4J API 和具体的日志实现(例如 Logback 或 Log4j2)。在 pom.xml 中添加如下依赖项 <dependency> <groupId>com.jcraft</groupId> <artifactId>jsch</artifactId 阅读全文
posted @ 2025-03-28 22:39 BUG弄潮儿 阅读(112) 评论(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弄潮儿 阅读(42) 评论(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弄潮儿 阅读(30) 评论(0) 推荐(0)
摘要: 1.下载源码 git clone https://github.com/langgenius/dify.git 在启用业务服务之前,需要先部署 PostgreSQL / Redis / Weaviate(如果本地没有的话),可以通过以下命令启动: 依赖安装高版本的docker-compose cd 阅读全文
posted @ 2025-03-28 22:37 BUG弄潮儿 阅读(668) 评论(0) 推荐(0)
摘要: 安装victoriametrics https://docs.victoriametrics.com/single-server-victoriametrics/ 下载地址 https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag 阅读全文
posted @ 2025-03-28 22:36 BUG弄潮儿 阅读(48) 评论(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弄潮儿 阅读(148) 评论(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弄潮儿 阅读(191) 评论(0) 推荐(0)