https://github.com/robsonbittencourt/monitoring-micrometer
Docker Compose help file to monitoring existent micrometer metrics in localhost
https://github.com/robsonbittencourt/monitoring-micrometer
docker-compose grafana micrometer monitoring prometheus springboot
Last synced: about 1 year ago
JSON representation
Docker Compose help file to monitoring existent micrometer metrics in localhost
- Host: GitHub
- URL: https://github.com/robsonbittencourt/monitoring-micrometer
- Owner: robsonbittencourt
- License: mit
- Created: 2020-05-10T03:02:46.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2025-01-20T15:31:47.000Z (over 1 year ago)
- Last Synced: 2025-03-24T08:06:52.619Z (over 1 year ago)
- Topics: docker-compose, grafana, micrometer, monitoring, prometheus, springboot
- Homepage:
- Size: 206 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Monitoring Micrometer
> Docker Compose help file to monitoring existent micrometer metrics in localhost
## Motivation
The goal of this project is to create an instance of [Prometheus](https://prometheus.io/) and one of [Grafana](https://grafana.com/) to monitor a [Spring Boot](https://spring.io/projects/spring-boot) application that exposes its metrics with [Micrometer](https://micrometer.io/).
The project was designed to monitoring the application locally during development. No type of configuration or optimization was done in this setup.
## Prerequisite
Run a Springboot application locally that exposes your metrics at http://localhost:8080/metrics or http://localhost:9090/metrics.
If your applications runs on another port you need to adjust this configuration in [this configuration file](prometheus/prometheus.yml).
## Running
```
git clone git@github.com:robsonbittencourt/monitoring-micrometer.git
cd monitoring-micrometer
docker-compose up -d
```
Go to http://localhost:3000 to access Grafana and click on the dashboard JVM Micrometer. The dashboard below will be displayed. Thanks to [Michael Weirauch](https://github.com/mweirauch) for the [Grafana dashboard](https://grafana.com/grafana/dashboards/4701)

## Micrometer Example
If you don't have an micrometer project but want test this you can use [this example project](https://github.com/robsonbittencourt/prometheus-micrometer-example).
```
docker run \
-p 8080:8080 \
-p 9090:9090 \
--name prometheus-micrometer-example \
robsonbittencourt/prometheus-micrometer-example
```