package net.andreaskluth.micrometersample;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import reactor.core.publisher.Mono;

@RestController
public class SampleController {

    @GetMapping("/")
    public Mono<String> hello() {
        return Mono.just("Hallo");
    }

}

@@ -171,85 +171,260 @@
 ort 
-reactor.core.publisher.Mono;%0A%0A@RestController%0Apublic class SampleController %7B
+io.micrometer.core.instrument.Counter;%0Aimport io.micrometer.core.instrument.Metrics;%0Aimport reactor.core.publisher.Mono;%0A%0A@RestController%0Apublic class SampleController %7B%0A%0A    private final Counter counter = Metrics.counter(%22handler.calls%22, %22uri%22, %22/%22);
 %0A%0A  
@@ -509,16 +509,95 @@
 %22Hallo%22)
+.map(__ -%3E %7B%0A            counter.increment();%0A            return __;%0A        %7D)
 ;%0A    %7D%0A

Add metric.