# threadpool-dynamic-monitor **Repository Path**: zc-sunny/threadpool-dynamic-monitor ## Basic Information - **Project Name**: threadpool-dynamic-monitor - **Description**: 1:micrometer + prometheus + grafana监控各个项目中线程池的运行状态。 2:集成Nacos实现线上环境线程池参数的动态修改。 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 4 - **Created**: 2021-02-08 - **Last Updated**: 2025-05-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # threadpool-monitor #### 介绍 1:micrometer + prometheus + grafana监控各个项目中线程池的运行状态。 2:集成Nacos实现线上环境线程池参数的动态修改。 注:可以基于注解实现,e.g:@MonitorThreadPool注解来实现扫描SpringBean。 #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 ##### 一. common-metric : common包用于采集线程池的数据。 ``` 端口:8081 ``` ##### 二. metric-demo : Spring Boot对接Prometheus & Grafana示例。 ``` 端口:8082 ``` 1:./resource/package/prometheus/prometheus-2.15.2.linux-amd64.tar.gz和./resource/package/prometheus/prometheus.yml拷贝到Linux环境服务器上。 ``` tar xf prometheus-2.15.2.linux-amd64.tar.gz mv prometheus-2.15.2.linux-amd64.tar.gz prometheus cd /prometheus # 启动prometheus服务端 ./prometheus --config.file="./prometheus.yml" & ``` 2:启动metric-demo 2.1:点击Classic UI。 ![UI](https://gitee.com/zc-sunny/threadpool-monitor/raw/master/metric-demo/src/main/resources/png/UI.png) 2.2:选择insert metic at cursor。 ![Cursor](https://gitee.com/zc-sunny/threadpool-monitor/raw/master/metric-demo/src/main/resources/png/Cursor.png) 2.3:点击Execute,然后选择Graph。 ![Graph](https://gitee.com/zc-sunny/threadpool-monitor/raw/master/metric-demo/src/main/resources/png/Graph.png) #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)