How can I integrate Ristretto Metrics with Prometheus?

I’m using Ristretto caching in my code and wanted to start using the Metrics function.
Haven’t found any documentation about integrating the metrics with external monitoring.
Is it possible?

I think you would be fine just periodically running a Prometheus metric set on each of the metrics provided by the cache.Metrics methods.

1 Like