micrometer-metrics/micrometer

Cache metrics for http clients

Open

#1700 aperta il 11 nov 2019

Vedi su GitHub
 (2 commenti) (2 reazioni) (0 assegnatari)Java (935 fork)batch import
enhancementhelp wantedwaiting for feedback

Metriche repository

Star
 (4220 star)
Metriche merge PR
 (Merge medio 1g 21h) (100 PR mergiate in 30 g)

Descrizione

Both httpclient from Apache and OkHttp (which are instrumented by micrometer: OkHttpMetricsEventListener and https://github.com/micrometer-metrics/micrometer/issues/533) support provider driven caching (based on http headers)

It would be helpful (for the sake of completeness) for micrometer to provide insight to the state of caches (size, maxSize, hit and misses).

I've drafted a cache metrics for OkHttp which I'd like to get feedback ok: https://github.com/micrometer-metrics/micrometer/compare/master...kubamarchwicki:httpclient-cache-metrics. If that's something interesting, I'd hapilly finalize both OkHttp as well as httpclient.

Guida contributor