Please register druid metrics data into Micrometer registry at first.
Dependencies and Configuration
compile "org.springframework.boot:spring-boot-starter-actuator:2.0.6.RELEASE" compile 'io.micrometer:micrometer-registry-prometheus:1.0.6'
# yaml configuration: include "*" or include "prometheus" management: endpoints: web: exposure: include: "*"
Source Code for Integration
Download Link: http://filecdn.code2life.top/DruidMetrics.zip
/* This line may need be changed depend on spring or druid version */ DruidDataSource druidDataSource = dataSource.unwrap(DruidDataSource.class);
Please contact email@example.com for any questions