博客园 - 星空流年
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=61923
2024-03-26T04:54:34Z
星空流年
https://www.cnblogs.com/cndarren/
feed.cnblogs.com
https://www.cnblogs.com/cndarren/p/17545721.html
Springboot远程调用Prometheus Api获取指标数据 - 星空流年
0、写在前面 1> 使用RestTemplate作为远程调用工具调用prometheus原生api获取数据 2> prometheus原生api文档地址如下:https://prometheus.io/docs/prometheus/latest/querying/api/ 3> 通过访问prome
2023-07-11T11:19:00Z
2023-07-11T11:19:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】0、写在前面 1> 使用RestTemplate作为远程调用工具调用prometheus原生api获取数据 2> prometheus原生api文档地址如下:https://prometheus.io/docs/prometheus/latest/querying/api/ 3> 通过访问prome <a href="https://www.cnblogs.com/cndarren/p/17545721.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cndarren/p/17528951.html
Springboot实现动态定时任务管理 - 星空流年
最近在做spring boot项目开发中,由于使用@EnableScheduling注解和@Scheduled注解来实现的定时任务,只能静态的创建定时任务,不能动态修改、添加、删除、启/停任务。由于项目开发体量不大,如果引入xxl-job等开源框架处理,会导致项目过于臃肿和复杂,同时通过查找相关资料
2023-07-07T02:24:00Z
2023-07-07T02:24:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】最近在做spring boot项目开发中,由于使用@EnableScheduling注解和@Scheduled注解来实现的定时任务,只能静态的创建定时任务,不能动态修改、添加、删除、启/停任务。由于项目开发体量不大,如果引入xxl-job等开源框架处理,会导致项目过于臃肿和复杂,同时通过查找相关资料 <a href="https://www.cnblogs.com/cndarren/p/17528951.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cndarren/p/17532195.html
Java实现自定义指标数据远程写入Prometheus - 星空流年
最近在看夜莺的记录规则这部分功能实现,其中新增记录规则之后需要远程写入prometheus,而对于这部分功能实现,夜莺使用的是Go实现(可参考如下地址:https://heapdump.cn/article/5597957),由于项目使用Java开发,所以针对这部分功能,只能进行重写。下面内容为抽取
2023-07-06T07:10:00Z
2023-07-06T07:10:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】最近在看夜莺的记录规则这部分功能实现,其中新增记录规则之后需要远程写入prometheus,而对于这部分功能实现,夜莺使用的是Go实现(可参考如下地址:https://heapdump.cn/article/5597957),由于项目使用Java开发,所以针对这部分功能,只能进行重写。下面内容为抽取 <a href="https://www.cnblogs.com/cndarren/p/17532195.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cndarren/p/17480090.html
Springboot定时任务集成shedLock锁 - 星空流年
0、写在前面 最近在项目开发过程中,涉及到定时任务的编写,定时任务大家都知道,在多服务器部署时,为了防止同一时间同一任务多次执行的问题,通常需要使用分布式定时任务进行处理,这部分对应的框架也很多,例如:xxl-job,power-job,elastic-job,但是由于考虑到当前所负责开发的项目体量
2023-06-14T06:15:00Z
2023-06-14T06:15:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】0、写在前面 最近在项目开发过程中,涉及到定时任务的编写,定时任务大家都知道,在多服务器部署时,为了防止同一时间同一任务多次执行的问题,通常需要使用分布式定时任务进行处理,这部分对应的框架也很多,例如:xxl-job,power-job,elastic-job,但是由于考虑到当前所负责开发的项目体量 <a href="https://www.cnblogs.com/cndarren/p/17480090.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cndarren/p/17439965.html
K8s部署单节点Zookeeper并进行监控 - 星空流年
0、写在前面 1> K8s监控Zookeeper,这里并没有使用zookeeper-exporter的方式进行监控,主要是由于zookeeper-exporter提供的相关指标不太全,zookeeper官网提供的监控指标信息可参看如下地址:https://github.com/apache/zook
2023-05-29T03:25:00Z
2023-05-29T03:25:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】0、写在前面 1> K8s监控Zookeeper,这里并没有使用zookeeper-exporter的方式进行监控,主要是由于zookeeper-exporter提供的相关指标不太全,zookeeper官网提供的监控指标信息可参看如下地址:https://github.com/apache/zook <a href="https://www.cnblogs.com/cndarren/p/17439965.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cndarren/p/17265441.html
Spring Cloud Gateway 网关跨域问题解决 - 星空流年
0、版本说明 Spring Cloud Version:Spring Cloud 2021.0.4 Spring Cloud Gateway Version:3.1.4 Spring Boot Version:2.6.11 1、网关跨域问题说明 关于跨域的相关原理和理论,网上有大量文章对此进行说明,
2023-03-28T07:44:00Z
2023-03-28T07:44:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】0、版本说明 Spring Cloud Version:Spring Cloud 2021.0.4 Spring Cloud Gateway Version:3.1.4 Spring Boot Version:2.6.11 1、网关跨域问题说明 关于跨域的相关原理和理论,网上有大量文章对此进行说明, <a href="https://www.cnblogs.com/cndarren/p/17265441.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cndarren/p/17137233.html
k8s中使用prometheus operator监控外部服务器部署的windows exporter - 星空流年
k8s中使用prometheus operator监控外部服务器部署的windows exporter 0、文档说明 (1)Prometheus Operator是一个流行的k8s集群监控套件,项目地址:https://github.com/prometheus-operator/kube-prom
2023-02-20T06:20:00Z
2023-02-20T06:20:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】k8s中使用prometheus operator监控外部服务器部署的windows exporter 0、文档说明 (1)Prometheus Operator是一个流行的k8s集群监控套件,项目地址:https://github.com/prometheus-operator/kube-prom <a href="https://www.cnblogs.com/cndarren/p/17137233.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cndarren/p/17100468.html
k8s部署canal-1.1.6版本实现MySQL数据库数据同步 - 星空流年
1、版本说明 软件&镜像 版本&镜像信息 说明 Kubernetes v1.23.7 k8s服务器 Kuboard v3.5.2.0 k8s连接管理工具 Canal v1.1.6 数据同步 Canal-deployer canal/canal-server:latest canal-deplyer镜
2023-02-08T01:14:00Z
2023-02-08T01:14:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】1、版本说明 软件&镜像 版本&镜像信息 说明 Kubernetes v1.23.7 k8s服务器 Kuboard v3.5.2.0 k8s连接管理工具 Canal v1.1.6 数据同步 Canal-deployer canal/canal-server:latest canal-deplyer镜 <a href="https://www.cnblogs.com/cndarren/p/17100468.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cndarren/p/16975566.html
k8s容器内部通过Prometheus Operator部署MySQL Exporter监控k8s集群外部的MySQL - 星空流年
写在前面 在按照下面步骤操作之前,请先确保服务器已经部署k8s,prometheus,prometheus operator,关于这些环境的部署,可以自行查找相关资料安装部署,本文档便不在此赘述。 关于prometheus监控这部分,大致的系统架构图如下,感兴趣的同学可以自行研究一下,这里就不再具体
2022-12-12T03:50:00Z
2022-12-12T03:50:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】写在前面 在按照下面步骤操作之前,请先确保服务器已经部署k8s,prometheus,prometheus operator,关于这些环境的部署,可以自行查找相关资料安装部署,本文档便不在此赘述。 关于prometheus监控这部分,大致的系统架构图如下,感兴趣的同学可以自行研究一下,这里就不再具体 <a href="https://www.cnblogs.com/cndarren/p/16975566.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cndarren/p/16935876.html
k8s容器中通过Prometheus Operator部署Redis Exporter监控Redis - 星空流年
写在前面 在按照下面步骤操作之前,请先确保服务器已经部署k8s,prometheus,prometheus operator以及Redis,关于这些环境的部署,可以自行查找相关资料安装部署,本文档便不在此赘述。 关于prometheus监控这部分,大致的系统架构图如下,感兴趣的同学可以自行研究一下,
2022-11-29T08:56:00Z
2022-11-29T08:56:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】写在前面 在按照下面步骤操作之前,请先确保服务器已经部署k8s,prometheus,prometheus operator以及Redis,关于这些环境的部署,可以自行查找相关资料安装部署,本文档便不在此赘述。 关于prometheus监控这部分,大致的系统架构图如下,感兴趣的同学可以自行研究一下, <a href="https://www.cnblogs.com/cndarren/p/16935876.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cndarren/p/16932525.html
k8s容器中通过Prometheus Operator部署Kafka Exporter监控Kafka集群 - 星空流年
写在前面 在按照下面步骤操作之前,请先确保服务器已经部署k8s,prometheus,prometheus operator以及kafka集群,关于这些环境的部署,可以自行查找相关资料安装部署,本文档便不在此赘述。 关于prometheus监控这部分,大致的系统架构图如下,感兴趣的同学可以自行研究一
2022-11-28T08:23:00Z
2022-11-28T08:23:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】写在前面 在按照下面步骤操作之前,请先确保服务器已经部署k8s,prometheus,prometheus operator以及kafka集群,关于这些环境的部署,可以自行查找相关资料安装部署,本文档便不在此赘述。 关于prometheus监控这部分,大致的系统架构图如下,感兴趣的同学可以自行研究一 <a href="https://www.cnblogs.com/cndarren/p/16932525.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cndarren/p/16911487.html
k8s容器中通过Prometheus Operator部署Elasticsearch Exporter监控Elasticsearch - 星空流年
写在前面 在按照下面步骤操作之前,请先确保服务器已经部署k8s,prometheus,prometheus operator以及ElasticSearch,关于这些环境的部署,可以自行查找相关资料安装部署,本文档便不在此赘述。 关于prometheus监控这部分,大致的系统架构图如下,感兴趣的同学可
2022-11-21T07:22:00Z
2022-11-21T07:22:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】写在前面 在按照下面步骤操作之前,请先确保服务器已经部署k8s,prometheus,prometheus operator以及ElasticSearch,关于这些环境的部署,可以自行查找相关资料安装部署,本文档便不在此赘述。 关于prometheus监控这部分,大致的系统架构图如下,感兴趣的同学可 <a href="https://www.cnblogs.com/cndarren/p/16911487.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cndarren/p/16833526.html
nacos配置Map嵌套List数据 - 星空流年
nacos配置yaml文件,读取格式为Map<String, List<String>>数据: 1、当数据不含有中文字符时,格式如下: test: map: key1: - value1 - value2 key2: - value3 - value4 key3: - value5 2、当数据含有中
2022-10-27T12:05:00Z
2022-10-27T12:05:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】nacos配置yaml文件,读取格式为Map<String, List<String>>数据: 1、当数据不含有中文字符时,格式如下: test: map: key1: - value1 - value2 key2: - value3 - value4 key3: - value5 2、当数据含有中 <a href="https://www.cnblogs.com/cndarren/p/16833526.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cndarren/p/16746300.html
k8s部署canal-server使用configMap挂载方式报Read Only file System - 星空流年
k8s部署canal-server使用configMap挂载方式报Read Only file System 1.1、问题复现 由于部署canal-server时,需要修改主库master的数据库连接信息以及配置zookeeper,所以为了后续操作方便,于是使用了configMap挂载配置文件的方式
2022-09-30T13:42:00Z
2022-09-30T13:42:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】k8s部署canal-server使用configMap挂载方式报Read Only file System 1.1、问题复现 由于部署canal-server时,需要修改主库master的数据库连接信息以及配置zookeeper,所以为了后续操作方便,于是使用了configMap挂载配置文件的方式 <a href="https://www.cnblogs.com/cndarren/p/16746300.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cndarren/p/16368648.html
CentOS7安装MySQL5.7操作说明 - 星空流年
CentOS7安装MySQL5.7操作说明 0、前置说明 0.1、服务器信息 服务器IP地址操作系统说明 192.168.112.131 CentOS7 64位 服务器信息 0.2、MySQL版本 MySQL 安装版本: mysql-5.7.38 1、查找是否安装MySQL rpm -qa|grep
2022-06-12T11:18:00Z
2022-06-12T11:18:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】CentOS7安装MySQL5.7操作说明 0、前置说明 0.1、服务器信息 服务器IP地址操作系统说明 192.168.112.131 CentOS7 64位 服务器信息 0.2、MySQL版本 MySQL 安装版本: mysql-5.7.38 1、查找是否安装MySQL rpm -qa|grep <a href="https://www.cnblogs.com/cndarren/p/16368648.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cndarren/p/16318728.html
基于Canal实现MySQL 8.0 数据库数据同步 - 星空流年
基于Canal实现MySQL 8.0 数据库数据同步 0、前置信息 0.1、服务器信息 主机名 操作系统 说明 192.168.91.131 CentOS 7 主库所在服务器 192.168.91.135 CentOS 7 canal数据同步所在服务器 0.2、版本说明 MySQL版本:MySQL_
2022-05-27T10:34:00Z
2022-05-27T10:34:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】基于Canal实现MySQL 8.0 数据库数据同步 0、前置信息 0.1、服务器信息 主机名 操作系统 说明 192.168.91.131 CentOS 7 主库所在服务器 192.168.91.135 CentOS 7 canal数据同步所在服务器 0.2、版本说明 MySQL版本:MySQL_ <a href="https://www.cnblogs.com/cndarren/p/16318728.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cndarren/p/16197684.html
Sentinel规则持久化到Nacos及规则数据双向同步 - 星空流年
Sentinel规则持久化到Nacos及规则数据双向同步 说明:此处Sentinel网关规则持久化是使用推模式扩展,将Sentinel网关规则持久化到Nacos,至于持久化到ZooKeeper, Redis, Apollo, etcd,可以根据具体数据源进行扩展,这里就不再说明 1、前置工作 1.1
2022-04-27T07:49:00Z
2022-04-27T07:49:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】Sentinel规则持久化到Nacos及规则数据双向同步 说明:此处Sentinel网关规则持久化是使用推模式扩展,将Sentinel网关规则持久化到Nacos,至于持久化到ZooKeeper, Redis, Apollo, etcd,可以根据具体数据源进行扩展,这里就不再说明 1、前置工作 1.1 <a href="https://www.cnblogs.com/cndarren/p/16197684.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cndarren/p/16161256.html
基于MGR方式搭建MySQL8.0一主多从集群 - 星空流年
MySQL8集群搭建——基于MGR方式 说明:此集群搭建为单主模式,即一主多从 0、前置工作 0.1、主、从服务器信息 主机名 操作系统 HostName映射 192.168.91.131 CentOS7 master 192.168.91.132 CentOS7 node1 192.168.91.
2022-04-18T13:57:00Z
2022-04-18T13:57:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】MySQL8集群搭建——基于MGR方式 说明:此集群搭建为单主模式,即一主多从 0、前置工作 0.1、主、从服务器信息 主机名 操作系统 HostName映射 192.168.91.131 CentOS7 master 192.168.91.132 CentOS7 node1 192.168.91. <a href="https://www.cnblogs.com/cndarren/p/16161256.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cndarren/p/16158439.html
vue项目npm install下载依赖时,报error code128解决方法 - 星空流年
1、问题描述 最近由于升级了nodejs版本,然后重新配置了系统环境,重新打开之前的Vue项目,执行npm install时,报了如下错误信息 2、报错原因 报错原因从上面的错误信息大致可以看出来,就是说在程序在执行的git ls-remote git://xxxx时,由于ci的机器上没有可用的ss
2022-04-18T02:13:00Z
2022-04-18T02:13:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】1、问题描述 最近由于升级了nodejs版本,然后重新配置了系统环境,重新打开之前的Vue项目,执行npm install时,报了如下错误信息 2、报错原因 报错原因从上面的错误信息大致可以看出来,就是说在程序在执行的git ls-remote git://xxxx时,由于ci的机器上没有可用的ss <a href="https://www.cnblogs.com/cndarren/p/16158439.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cndarren/p/16009775.html
Grafana整合ElasticSearch数据源绘制Dashboard展示 - 星空流年
Grafana整合ElasticSearch数据源绘制Dashboard展示 0、前置信息 0.1、版本信息 grafana版本:v8.1.2 ElasticSearch数据源版本:7.6.2 ElasticSearch7.6.2版本对应的Lucene版本:8.4.0 0.2、官网地址 grafan
2022-03-15T11:01:00Z
2022-03-15T11:01:00Z
星空流年
https://www.cnblogs.com/cndarren/
【摘要】Grafana整合ElasticSearch数据源绘制Dashboard展示 0、前置信息 0.1、版本信息 grafana版本:v8.1.2 ElasticSearch数据源版本:7.6.2 ElasticSearch7.6.2版本对应的Lucene版本:8.4.0 0.2、官网地址 grafan <a href="https://www.cnblogs.com/cndarren/p/16009775.html" target="_blank">阅读全文</a>