I have instrumented my code inside a method for micrometer gauge like this:
SimpleMeterRegistry registry = new SimpleMeterRegistry();
Gauge
.builder("greeting_service_gauge", new AtomicInteger(new Random().nextInt(10)), AtomicInteger::get)
.register(registry);
I have added few other metrics too.
Other metrics appear on prometheus endpoint, but this gauge metrics doesn't.
What am I missing here?