title: Expose metrics from spring application to prometheus without using spring-boot actuator
body: <p>I have been trying to collect micrometer metrics in a non springboot application and expose them to prometheus.I have added the following dependency and the test method for the same.I would like to know how to proceed and expose the collected metrics to prometheus from my non spring boot application(traditional spring application).</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;io.micrometer&lt;/groupId&gt;
      &lt;artifactId&gt;micrometer-registry-prometheus&lt;/artifactId&gt;
      &lt;version&gt;1.2.0&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <pre><code>public string testmetrics(){
      private PrometheusMeterRegistry registry = new PrometheusMeterRegistry(PrometheusConfig.DEFAULT);
      registry.counter("ws metric collection","tktdoc metrics");
      String metricsInfo = registry.scrape();
      return metricsInfo;
  } 
  </code></pre>