Skip to content

Conversation

@merlimat
Copy link
Contributor

@merlimat merlimat commented Oct 4, 2019

Motivation

Collect and expose metrics related to the Caffeine and Guava caches in brokers.

This will report the sizes, hit/misses rates and load latency.

@merlimat merlimat added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label Oct 4, 2019
@merlimat merlimat added this to the 2.5.0 milestone Oct 4, 2019
@merlimat merlimat self-assigned this Oct 4, 2019
public static final io.prometheus.client.cache.caffeine.CacheMetricsCollector CAFFEINE = new io.prometheus.client.cache.caffeine.CacheMetricsCollector()
.register();

public static final io.prometheus.client.guava.cache.CacheMetricsCollector GUAVA = new io.prometheus.client.guava.cache.CacheMetricsCollector()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this being used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was initially planning to instruments also Guava caches, though the remaining ones we have are not very interesting, so dropped the ball.

I have removed guava now. PTAL.

@merlimat merlimat changed the title Expose metrics of Caffeine and Guava caches Expose metrics of Caffeine caches Oct 7, 2019
@merlimat
Copy link
Contributor Author

run java8 tests
run integration tests

@sijie
Copy link
Member

sijie commented Oct 24, 2019

run integration tests

1 similar comment
@merlimat
Copy link
Contributor Author

run integration tests

@merlimat merlimat merged commit 7c3f3bd into apache:master Oct 24, 2019
@merlimat merlimat deleted the cache-stats branch October 24, 2019 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants