Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gasperlf/spring-boot-monitoring
monitoring services with spring boot, prometheus and grafana
https://github.com/gasperlf/spring-boot-monitoring
actuator-spring-boot bash-script docker docker-compose grafana grafana-dashboard java11 maven postman-collection prometheus spring-boot
Last synced: 3 days ago
JSON representation
monitoring services with spring boot, prometheus and grafana
- Host: GitHub
- URL: https://github.com/gasperlf/spring-boot-monitoring
- Owner: gasperlf
- Created: 2020-01-21T18:13:48.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-05T19:53:26.000Z (about 5 years ago)
- Last Synced: 2024-01-27T00:43:19.424Z (about 1 year ago)
- Topics: actuator-spring-boot, bash-script, docker, docker-compose, grafana, grafana-dashboard, java11, maven, postman-collection, prometheus, spring-boot
- Language: Java
- Homepage:
- Size: 39.2 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://twitter.com/gasper_lf)
# spring-boot-monitoring
Example how to monitoring microservices with spring boot, Spring Actuator, Prometheus and Grafana.## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.git clone https://github.com/gasperlf/spring-boot-monitoring.git
## Prerequisites
- Java 11
- Spring boot 2.2.4
- Docker
- Docker compose
- Prometheus
- Grafana
- YahooFinanceAPI Library (https://financequotes-api.com/)
- Postman## Model
## IDE's
1. Eclipse
2. Intellij IDEA##Running
### Components1. api-finance-service
2. api-finance-service-reactive
3. prometheus
4. Grafana### Command
1. `mvn clean package` compile and create artifacts.
2. ` docker-compose up -d` create docker image and run in a container.
Also you can use bash script `start.sh` that contains both commands.
### See monitoring in grafana
First in your browser `http://localhost:3000`
next Log in with user and password admin/admin
then create a datasource, select prometheus.
in this step you need to set URL from prometheus service, in this case `http://[docker-container]:9090` (check docker compose name)
after that you can import a dashboard that I have included in Grafana folder, I prefer to use `jvm-micrometer_rev9.json`
check when you imported the dashboard choose the datasource created before.
and that is all.
## Postman
#### Api-finance-service
![]()
#### Api-finance-service-reactive
## Contributing
## Versioning
0.0.1-snapshot
## Authors
- Lewis Florez Renza
## License
## Acknowledgments