Spring & Micrometer: How to add gauges to the MeterRegistry at runtime?
I need to add gauges from a scheduler to MeterRegistry. I register new gauges and they appear in Prometheus output, but the value functions aren’t being called. It leads to NaN values on the added metrics in prometheus.