Is there a way to limit the cardinality of a counterVec in golang sdk?

31 views
Skip to first unread message

Jinming Han

unread,
May 17, 2021, 5:23:44 AM5/17/21
to Prometheus Users
as we all know,  vector metrics should not many different label values (https://prometheus.io/docs/practices/naming/#labels).  but some user abuse label, target will expose large body in /metric endpoint.  then it will cause prometheus server OOM (event if set  `sample_limit` at config file).   so, Is there a way to limit the cardinality of a counterVec in golang sdk? 


Reply all
Reply to author
Forward
0 new messages