alibaba / druid

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

druid-admin,无法监控sql #4634

Open lzhharvey opened 2 years ago

lzhharvey commented 2 years ago

编译,启动。

配置如下: spring: application: name: druid-admin main: allow-bean-definition-overriding: true cloud: consul: enabled: false host: localhost port: 8500 discovery: enable: false hostname: ${spring.cloud.client.ip-address} instance-id: ${spring.application.name}:${vcap.application.instance_id:${spring.application.instance_id:${random.value}}} instance-zone: zone1 nacos: discovery: enabled: true server-addr: 127.0.0.1:8848 eureka: instance: preferIpAddress: false ipAddress: localhost instance-id: ${eureka.instance.ipAddress}:${server.port}:${spring.application.name} client: serviceUrl: defaultZone: http://localhost:8761/eureka/ enabled: false

monitor:

需要监控的服务名spring.application.name

applications: opmaint-lzh

监控页面的登录用户名和密码

login-username: admin login-password: 123456

无法监控sql。

出现如下报错: image

hanjunjidaxian commented 1 year ago

应该是http请求获取的数据有问题 有个json转换地方报了错