druid分布式mysql_Druid分布式监控请教

环境信息 (必填)

pigx版本: 3.4.0

是否修改包名: 是

这些步骤都是在pigx-monitor中配置的

虽然 sql监控那里 可以显示 有哪些 服务了, 但是

1>SQL监控中 显示不出来执行SQL

2>数据源中报

(*) property for user to setup

3>druid 点击首页 显示不了 版本以及Java信息 等

但是单独用upms-biz 查看druid是可以查看上述信息的

monitor的配置

spring:

安全配置

security:

user:

name: ENC(rZHA4LW5hHmhLAAzJoFNag==) # pigx

password: ENC(bjeyh+Aeii3kHXkoo00ZUw==) # pigx

boot:

admin:

ui:

resource-locations: 'classpath:/ui/,classpath:/static/'

template-location: 'classpath:/ui/'

title: 'pigx 服务状态监控'

brand: 'pigx 服务状态监控'

external-views:

- label: "SQL监控"

url: /druid/sql.html

order: 2000

management:

endpoints:

web:

exposure:

include: '*'

endpoint:

health:

show-details: ALWAYS #显示详细信息

biz的配置

spring security 配置

security:

oauth2:

client:

client-id: ENC(ltJPpR50wT0oIY9kfOe1Iw==)

client-secret: ENC(ltJPpR50wT0oIY9kfOe1Iw==)

scope: server

ignore-urls:

- /druid/**

- /actuator/**

- /v2/api-docs

数据源

spring:

datasource:

type: com.alibaba.druid.pool.DruidDataSource

druid:

driver-class-name: com.mysql.cj.jdbc.Driver

username: ${MYSQL-USER:root}

password: ${MYSQL-PWD:sha9}

url: jdbc:mysql://${MYSQL-HOST:pigx-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:sundsoft_base}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&allowPublicKeyRetrieval=true

stat-view-servlet:

enabled: true

allow: ""

url-pattern: /druid/*

login-username: admin

login-password: admin

filter:

stat:

enabled: true

log-slow-sql: true

slow-sql-millis: 10000

merge-sql: false

wall:

config:

multi-statement-allow: true

因为保密原因 不能截图 和照相 见谅

描述(无法理解工单,将直接关闭)

日志、截图、回显步骤

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值