title: Integration of Resilience 4j and Prometheus
body: <p>How to integrate Resilience-4J and Prometheus with micro-services.</p>
  
  <p>I have integrated Micro-services with resilience 4j and also with Prometheus .
      My problem is ,in Prometheus i am not getting any resilience query,only HTTP and other which comes default are populating .</p>
  
  <pre><code>Kindly help
  Steps that i have implemented so far are listed below...
  1&gt;created micro-services
  2&gt;Integrate micro-services with Resilience 4j by following steps
      i&gt;dependency in pom.xml file
      ii&gt;created separate class of Circuit-breaker and retry module.
      iii&gt;After that i have added Prometheus by adding its jar 
    which is...
  
   &lt;dependency&gt;
          &lt;groupId&gt;io.micrometer&lt;/groupId&gt;
          &lt;artifactId&gt;micrometer-registry-prometheus&lt;/artifactId&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>3>In Prometheus Dashboard resilience queries/matrices are not populating.</p>
  
  <pre><code>i.e # HELP resilience4j_circuit-breaker_calls Circuit Breaker Call Stats
        # TYPE resilience4j_circuit-breaker_calls gauge
         resilience4j_circuit-breaker_calls{name="backendB",call_result="successful",} 0.0
         resilience4j_circuit-breaker_calls{name="backendB",call_result="failed",} 0.0
  </code></pre>
  
  <p>Kindly help.
  Thanks in Advance</p>
  
  <p>i have also added below dependencies for resilience 4j and Prometheus integration...</p>
  
  <pre><code> &lt;dependency&gt;
               &lt;groupId&gt;io.github.resilience4j&lt;/groupId&gt;
               &lt;artifactId&gt;resilience4j-metrics&lt;/artifactId&gt;
               &lt;version&gt;0.16.0&lt;/version&gt;
   &lt;/dependency&gt;
  
     &lt;dependency&gt;
              &lt;groupId&gt;io.github.resilience4j&lt;/groupId&gt;
              &lt;artifactId&gt;resilience4j-prometheus&lt;/artifactId&gt;
              &lt;version&gt;0.16.0&lt;/version&gt;
     &lt;/dependency&gt;
  </code></pre>
  
  <p>want resilience matrices on Prometheus dashboard.</p>