This project aims to show how to monitor metrics and logs between REST applications.
Here's a diagram representing the hierarchy and dependencies among the projects in this repository:
Loki, prometheus and grafana configurtion are placed in ./docker/ folfer.
Run all container
# go to docker folder
cd ./docker
# run all containder services
docker compose up -d- Access grafana:
- Open your browser and go to http://localhost:3000
- log with default user
adminand passwordadmin
- 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
- Go to dashboard
- New dashboard
- Import dashboard
- add dashboard template url http://grafana.com/grafana/dashboards/4701
- Access grafana:
- Open your browser and go to http://localhost:3000
- log with default user
adminand passwordadmin
- 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.
