sun-jianlin opened a new issue, #3402: URL: https://github.com/apache/hertzbeat/issues/3402
### Question 通过私有驱动进行数据库监控,发生报错。应该如何修改消除问题。 报错信息:Query Error: No suitable driver found for jdbc:nds://127.0.0.1:18600/v_18600_osgenvcross?appname=App_osgenvcross&useSSL=false&serverTimezone=UTC&driver=sgcc.nds.jdbc.driver.NdsDriver Code: 0 服务器内驱动配置:  yml文件内容: category: custom app: glzz-jdbc name: zh-CN: 私有驱动监控 en-US: Custom Driver Monitor help: zh-CN: 使用指定JDBC驱动监控数据库 连接状态和查询延时(仅保留核心指标) en-US: Monitor db connectivity and query latency with custom JDBC driver (Minimal metrics) params: - field: host name: zh-CN: 目标Host en-US: Target Host type: host required: true - field: port name: zh-CN: 端口 en-US: Port type: number range: '[0,65535]' required: true defaultValue: 18600 - field: username name: zh-CN: 用户名 en-US: Username type: text required: true - field: password name: zh-CN: 密码 en-US: Password type: password required: true - field: driverPath name: zh-CN: 驱动包路径 en-US: Driver Path type: text required: true defaultValue: /opt/hertzbeat/ext-lib/sgjdbc-V4.3.21.1-build-20240716.5826.jar - field: url name: zh-CN: JDBC连接地址 en-US: JDBC URL type: text required: true defaultValue: jdbc:nds://^_^host^_^:^_^port^_^/v_18600_osgenvcross?appname=App_osgenvcross&useSSL=false&serverTimezone=UTC&driver=sgcc.nds.jdbc.driver.NdsDriver metrics: - name: availability priority: 0 # 可用性指标优先级最高 fields: - field: responseTime type: 0 i18n: zh-CN: 连接超时时间(ms) en-US: responseTime unit: ms label: true - field: status type: 1 i18n: zh-CN: 可用性(1|0) en-US: status label: true protocol: jdbc jdbc: host: ^_^host^_^ port: ^_^port^_^ platform: mysql username: ^_^username^_^ password: ^_^password^_^ url: ^_^url^_^ queryType: oneRow sql: "SELECT 1 AS status" # 简单查询验证连接 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@hertzbeat.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@hertzbeat.apache.org For additional commands, e-mail: notifications-h...@hertzbeat.apache.org