spring-cloud / spring-cloud-config

External configuration (server and client) for Spring Cloud
Apache License 2.0
1.95k stars 1.29k forks source link

Add micrometer integration #1110

Open asarkar opened 6 years ago

asarkar commented 6 years ago

As far as I can see, there is not a single mention of how to monitor the config server or what metrics are emitted out of the box. https://cloud.spring.io/spring-cloud-static/spring-cloud.html

The closest thing I could find is the Servo/Spectator section, but both are Netflix proprietary libraries. How can we configure config server to use Micrometer?

ryanjbaxter commented 6 years ago

What type of metrics are you looking to collect?

asarkar commented 6 years ago

What type of metrics are you looking to collect?

For starters:

Server: For each client:

  1. How many times it went to Git (or equivalent backend) and how long it took to fetch the data?
  2. Failure count/histogram for when item 1 fails.
  3. If there's a cache/sleep time (I asked for this feature long ago, not sure if implemented), then indicate that data is returned from cache and a trip to remote backend wasn't required. In other words, cache hit ratio.

Client:

  1. How many times it went to config server and how long it took to fetch the data?
  2. Failure count/histogram for when item 1 fails.