https://github.com/nimalank7/spring-boot-prometheus
Repository to learn about integration with Prometheus
https://github.com/nimalank7/spring-boot-prometheus
java learning spring
Last synced: about 1 year ago
JSON representation
Repository to learn about integration with Prometheus
- Host: GitHub
- URL: https://github.com/nimalank7/spring-boot-prometheus
- Owner: nimalank7
- Created: 2025-03-17T16:36:01.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-17T17:31:09.000Z (over 1 year ago)
- Last Synced: 2025-03-17T18:29:54.903Z (over 1 year ago)
- Topics: java, learning, spring
- Language: Java
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Boot Micrometer
Spring Boot application that increments a counter when user visits `GET /message`.
Micrometer is a facade that is used to integrate Spring Boot Actuator metrics with external monitoring systems like Prometheus.
# How it works
## Counter
- Metrics endpoint is exposed on `/actuator/prometheus:8080` with job name as `spring-actuator` that increments a counter upon each visit
- Metric is `http_server_requests_seconds_count{exception="None", instance="host.docker.internal:8080", job="spring-actuator", method="GET", outcome="SUCCESS", status="200", uri="/message"}`
## Prometheus
- Prometheus exposes its own metrics on `/metrics:9090` with job name as `prometheus`