title: Prometheus Endpoint Not Working Spring Boot 2.0.0.RC1 Spring Webflux enabled
body: <p>I followed the documentation here (<a href="https://docs.spring.io/spring-boot/docs/2.0.0.RC1/reference/htmlsingle/#production-ready-endpoints-enabling-endpoints" rel="noreferrer">https://docs.spring.io/spring-boot/docs/2.0.0.RC1/reference/htmlsingle/#production-ready-endpoints-enabling-endpoints</a>) and made sure application.yml file has the below </p>
  
  <pre><code>management:
    metrics:
      export:
        prometheus:
          enabled: true
    endpoints:
      web:
        expose:
          health, info, httptrace, metrics, threaddump, mappings, prometheus
  </code></pre>
  
  <p>As per the documentation (<a href="https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/actuator-api/html/#prometheus" rel="noreferrer">https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/actuator-api/html/#prometheus</a>) the following doesn't work.</p>
  
  <pre><code>curl 'http://localhost:8080/actuator/prometheus' -i
  </code></pre>
  
  <p>I get 404 Handler mapping not found exception. Can someone please let me know how to enable prometheus endpoint for scraping purposes and what URL endpoint I need to use to test it out?</p>
  
  <pre><code>o.s.w.r.r.m.a.RequestMappingHandlerMapping[276] - Did not find handler method for [/actuator/prometheus]
  </code></pre>
  
  <p>All other endpoints health, info, httptrace, threaddump, mappings are working perfectly fine.</p>