Skip to content

dilermando-lima/springboot-grafana-prometheus-loki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LOGS AND METRICS IN JAVA SPRING BOOT

About this project

This project aims to show how to monitor metrics and logs between REST applications.

Archtecture

Here's a diagram representing the hierarchy and dependencies among the projects in this repository:

diagram

docker enviroment

Loki, prometheus and grafana configurtion are placed in ./docker/ folfer.

Start containers

Run all container

# go to docker folder
cd ./docker
# run all containder services
docker compose up -d

Configure prometheus in grafana

  • Access grafana:
  • Add Prometheus as a Data Source in Grafana:
    • Go to Connections > Data Sources > Add data source.
    • Select Prometheus and set the URL to http://prometheus:9090.
    • Save it.
  • Select a prometheus dashboard

Configure loki in grafana

  • Access grafana:
  • Add Loki as a Data Source in Grafana:
    • Go to Connections > Data Sources > Add data source.
    • Select Loki and set the URL to http://loki:3100.
    • Save it.

About

Monitoring metrics and collecting logs with prometheus, grafana ana loki between rest apis

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages