Skip to content

Docker Compose help file to monitoring existent micrometer metrics in localhost

License

Notifications You must be signed in to change notification settings

robsonbittencourt/monitoring-micrometer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 and one of Grafana to monitor a Spring Boot application that exposes its metrics with Micrometer.

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.

Running

git clone [email protected]: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 for the Grafana dashboard

dashboard

Micrometer Example

If you don't have an micrometer project but want test this you can use this example project.

docker run \
    -p 8080:8080 \
    -p 9090:9090 \
    --name prometheus-micrometer-example \
    robsonbittencourt/prometheus-micrometer-example

About

Docker Compose help file to monitoring existent micrometer metrics in localhost

Topics

Resources

License

Stars

Watchers

Forks