<dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-actuator</artifactId>
  </dependency>
  <!-- The client -->
  <dependency>
      <groupId>io.prometheus</groupId>
      <artifactId>simpleclient</artifactId>
      <version>0.0.18</version>
  </dependency>
  <!-- Hotspot JVM metrics-->
  <dependency>
      <groupId>io.prometheus</groupId>
      <artifactId>simpleclient_hotspot</artifactId>
      <version>0.0.18</version>
  </dependency>
  <!-- Exposition servlet-->
  <dependency>
      <groupId>io.prometheus</groupId>
      <artifactId>simpleclient_servlet</artifactId>
      <version>0.0.18</version>
  </dependency>
  <!-- Pushgateway exposition-->
  <dependency>
      <groupId>io.prometheus</groupId>
      <artifactId>simpleclient_pushgateway</artifactId>
      <version>0.0.18</version>
  </dependency>
  <dependency>
      <groupId>io.prometheus</groupId>
      <artifactId>simpleclient_spring_boot</artifactId>
      <version>0.0.18</version>
  </dependency>@EnablePrometheusEndpoint
@EnableSpringBootMetricsCollector
public class Application {
  public Application() {}
  public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
  }
}