An open API service indexing awesome lists of open source software.

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

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`