Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's label currying in Prometheus?

Tags:

prometheus

In Prometheus, there's label currying. Some example methods are like CurryWith().

What's the meaning of it? Sorry I didn't find any documentation for this.

Problem might be related to that English is not my native language, and I don't understand curry from the function name.

Thanks!

like image 436
Wei Huang Avatar asked Sep 06 '25 03:09

Wei Huang


1 Answers

It allows you to fill in some but not all label value. You can check it here: https://github.com/prometheus/client_golang/blob/master/prometheus/gauge.go#L246

like image 183
Shivangi Motwani Avatar answered Sep 07 '25 23:09

Shivangi Motwani