https://github.com/cch0/spring-boot-2-prometheus
bare minimum spring boot 2 application with Prometheus
https://github.com/cch0/spring-boot-2-prometheus
Last synced: about 1 year ago
JSON representation
bare minimum spring boot 2 application with Prometheus
- Host: GitHub
- URL: https://github.com/cch0/spring-boot-2-prometheus
- Owner: cch0
- License: apache-2.0
- Created: 2018-03-01T21:17:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-01T21:34:00.000Z (over 8 years ago)
- Last Synced: 2025-02-12T15:36:52.493Z (over 1 year ago)
- Language: Shell
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spring-boot-2-prometheus
Bare minimum spring boot 2 application with Prometheus
Once application is started, __Prometheus__ endpoint is available at __/actuator/prometheus__ and __metrics__ endpoint at __/actuator/metrics__.
This application is generated by [Spring Initializr](https://start.spring.io/) with additional dependency on actuator, web and devtools.
Additional maven dependency for __micrometer-registry-prometheus__ is also added so that the application is generating metrics in Prometheus format.
In the __application.yml__ file, prometheus and metrics endpoints are enabled by the following configuration.
```
management:
endpoints:
web:
exposure:
include:
- info
- health
- prometheus
- metrics
```