Show HN: Promcap – cap Prometheus metric cardinality before it OOMs your stack
Category: library
Tags: prometheus, cardinality, go-library
Score: 7.0/10 (Innovation: 6, Technical: 7, Documentation: 8, Utility: 7)
Promcap is a Go library that wraps Prometheus metric vectors with a configurable cardinality cap, preventing unbounded label combinations from causing out-of-memory errors. It offers a unique in-process approach with overflow buckets, allowlists, and optional LRU eviction, making it a practical tool for taming high-cardinality metrics at the source.
Target audience: backend devs, devops, site reliability engineers
Repository: https://github.com/eben-vranken/promcap · Go · MIT · 2 stars
View on Hacker News