alibaba / druid

阿里云计算平台DataWorks(https://help.aliyun.com/document_detail/137663.html) 团队出品,为监控而生的数据库连接池
https://github.com/alibaba/druid/wiki
Apache License 2.0
27.9k stars 8.57k forks source link

springboot配置监控websession无数据显示 #2991

Open jlcon opened 5 years ago

jlcon commented 5 years ago

如题,springboot配置监控后,websession无数据显示,请问我的配置有什么问题? 配置如下: filters: stat,wall web-stat-filter: exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*,/components/*" session-stat-enable: true tim 20181225103245

wenshao commented 5 years ago

凭这个信息无法诊断,你自己调试试试看

jlcon commented 5 years ago

凭这个信息无法诊断,你自己调试试试看

还需要什么信息呢?需要指定principal-session-name和principal-cookie-name两个参数么?下面两个参数已经配置过了。文档上也没查到需要怎么配。 session-stat-enable: true profile-enable: true

XiaoCao1434 commented 5 years ago

请问楼主已经解决这个问题没?

XiaoCao1434 commented 5 years ago

已经解决: 配置文件多配置如下--》 spring.datasource.druid.web-stat-filter.profile-enable=true

jlcon commented 5 years ago

已经解决: 配置文件多配置如下--》 spring.datasource.druid.web-stat-filter.profile-enable=true

不行呢,是session监控,不是URI监控哟 web-stat-filter: enabled: true exclusions: ".js,.gif,.jpg,.png,.css,.ico,/druid/,/components/" session-stat-enable: true profile-enable: true

biuabiu commented 5 years ago

请问解决session监控了吗

jlcon commented 5 years ago

请问解决session监控了吗

没有

zhengweixiong commented 5 years ago

同样的问题,请问解决了么?