goburrow / cache

Mango Cache 🥭 - Partial implementation of Guava Cache in Go (golang).
BSD 3-Clause "New" or "Revised" License
574 stars 48 forks source link

Add a StatsCounter implementation for Prometheus #37

Open kakkoyun opened 1 year ago

kakkoyun commented 1 year ago

I recently implemented it in our downstream project. I'd be happy to contribute back to the upstream if you want to have it. https://github.com/parca-dev/parca-agent/blob/main/pkg/cache/stats_counter.go

I understand if you want to avoid bloating the project. Since Prometheus is ubiquitous enough, maybe you'd like to have it in the repo.