Skip to content

sushantkr16/spring-boot-2-prometheus

Repository files navigation

Getting Started

This is a sample project which shows how to make prometheus working with spring boot 2 application

  • Make sure the application yml file has below config details.
  • Start the application and hit the below URL.

Application configs

management: health.cassandra.enabled: false metrics: export: prometheus: enabled: true endpoints: prometheus: enabled: true web: exposure: include: "*" metrics.enabled: true

API reference

Rest service :

Adding Micrometer Prometheus Registry to your Spring Boot application

  • Spring boot 2 uses Micrometer, an application metrics facade to integrate actuator metrics with external monitoring systems. It supports several monitoring systems like Netflix Atlas, AWS Cloudwatch, Prometheus etc.

API to get the metrics (which prometheus uses)

Integrate with Prometheus and Grafana

TAGS : ksushant, sushant, spring boot 2, docker

About

spring-boot-2-prometheus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published