title: Springboot: micrometer metrics not showing up
body: <p>I am writing my first spring boot (2.6.3) application.</p>
  <p>Here the relevant dependencies I am using:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;dependencyManagement&gt;
      &lt;dependencies&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-dependencies&lt;/artifactId&gt;
              &lt;version&gt;2.6.3&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
              &lt;scope&gt;import&lt;/scope&gt;
          &lt;/dependency&gt;
  
      &lt;/dependencies&gt;
  &lt;/dependencyManagement&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                  &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;
              &lt;/exclusion&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                  &lt;artifactId&gt;log4j-to-slf4j&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-validation&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;io.micrometer&lt;/groupId&gt;
          &lt;artifactId&gt;micrometer-registry-prometheus&lt;/artifactId&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;        
  </code></pre>
  <p>I exposed by <strong>actuator</strong> all the features:</p>
  <pre class="lang-yaml prettyprint-override"><code>management:
    endpoint:
      health:
        show-details: always
    endpoints:
      web:
        exposure:
          include: '*'
    info:
      env:
        enabled: true
  </code></pre>
  <p>So I can see all the endpoints listed by the url <code>/actuator</code>.</p>
  <p>Now, I added some annotations like <code>@Counted</code> and <code>@Timed</code> to some methods, I invoked them, <strong>but they don't show up into <code>/actuator/metrics</code></strong>.</p>
  <p>How could I solved that issue?</p>
  <p>Thank you so much in advance!</p>