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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?