nginx-lua-prometheus icon indicating copy to clipboard operation
nginx-lua-prometheus copied to clipboard

Add support for callback metrics

Open knyar opened this issue 4 months ago • 0 comments

When gauge metric values can be set at collection time, we don't really need to store them in the shared dict or even in per-worker local state. For cases like this, it might be helpful to support metrics that call a function at collection time, similar to callback metrics in Java or custom collectors in Python.

More context: https://github.com/knyar/nginx-lua-prometheus/issues/168#issuecomment-2048965469

knyar avatar Apr 11 '24 07:04 knyar