-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
需求是接入prometheus统一监控 #3047
Comments
对prometheus不了解,你看能否提个Patch过来? |
jdbcstat的指标暴露,我能怎么在 spirngboot中 用定时任务获取到数据 就行了,prometheus只是 上报这些数据 |
prometheus是个抓取数据并存储的服务端. 它通过抓取页面暴露出来的数据存储并分析,可以通过配置prometheus查询语句 直接生成图形和告警. 比如说 springboot 添加 prometheus暴露依赖, 就可以配置应用是否启动 jvm使用数据, 堆栈利用率曲线及相关告警,druid这边要做的只是把相关sql数据以prometheus能识别的数据格式作为可抓取的url地址 暴露出来即可. |
@bugmakesprogress @snaigle 我就是这个意思, @wenshao 温少,求方案 |
我们是自己封装了一个插件,定时器获取jdbc数据自己上传influxdb,使用granfa监控 |
我这边搭建druid 0.15后,配置中设置 |
@majintao 可以直接用https://github.com/prometheus/jmx_exporter jmx_exporter的方式将druid实现的jmx格式的指标暴露出来供prometheus抓取监控数据库连接等信息 |
现在有更优雅的实现方式了吗? |
我这边目前有一个项目想把Druid的Metrics接入到Prometheus。 Spring Boot Actuator默认支持hikaricp,6.3.10. DataSource Metrics也给了支持更多数据库链接池的思路。Springboot+prometheus监控数据库连接池给了让Spring Boot Actuator支持Druid的基本方案。我可以在此基础完善一下让Spring Boot Actuator支持Druid。 后面我会提一个patch上来。 |
请问这里有更新的进展吗? |
已经提了一个pr了,目前druid官方还没有给回复,目前我们已经在自己公司的项目中用起来了 |
@penghaiping |
请问这里有更新的进展吗? |
需求是接入prometheus统一监控,druid在springboot里可以怎么暴露jdbcstat监控指标,想做成一个exporter 提供metric
The text was updated successfully, but these errors were encountered: