GithubHelp home page GithubHelp logo

Comments (3)

abhisheksurve45 avatar abhisheksurve45 commented on April 28, 2024

I see property metrics-tracker-factory in hikari

example

 datasource:
    url: jdbc:mysql://x.x.x.x:xxxx/xxx
    username: xxxx
    password: xxxx
    driver-class-name: com.mysql.cj.jdbc.Driver
    name: xxxx
    hikari:
      pool-name: xxxx
      metrics-tracker-factory: ?

But I'm not sure how to set it.

Ive initialised the Micrometer MeterRegistry via

@Bean
    public MeterRegistry getMeterRegistry() {
        return new CompositeMeterRegistry();
    }

from spring-boot.

wilkinsona avatar wilkinsona commented on April 28, 2024

org.springframework.boot.actuate.autoconfigure.metrics.jdbc.DataSourcePoolMetricsAutoConfiguration.HikariDataSourceMetricsConfiguration should set this up automatically. It sounds like that may not be happening for you but I cannot tell why without some more information about your application.

If you would like us to spend some more time investigating, please spend some time providing a complete yet minimal sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue.

from spring-boot.

abhisheksurve45 avatar abhisheksurve45 commented on April 28, 2024

Sure @wilkinsona

I could see code going through com.zaxxer.hikari.metrics.micrometer.MicrometerMetricsTracker#MicrometerMetricsTracker constructor and metrics being registered, however they don't appear on actuator endpoint.

Will create a small POC.

from spring-boot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.