This project have a complete Observability setup for a NodeJS application. Using Grafana, Prometheus and Loki the project results is below:
You should have docker-compose installed
- Clone the project:
git clone https://github.com/Luryy/NodeJS-Observability.git
- Start the infra:
docker-compose up
*your project is running
- Access
localhost:3333
to login at Grafanauser=admin password=12345
- Configure Prometheus Data Source at Grafana - param:
URL=http://prometheus:9090
- Configure Loki Data Source at Grafana - param:
URL=http://loki:3100
- Import NodeJsDahsboard.json present in this project to create a new metrics dashboard
*your metrics is configured
The API localhost:3000
have 4 endpoints
- /success - returns 200
- /delay - returns 200 after 3 seconds
- /error - returns 400
- /leak - generate memory leaks
Make requests to API endpoints and follow the metrics dashboard and logs!
👤 Lucas Yuri
- Github: Luryy
- LinkedIn: Lucas Yuri
Copyright © 2022 Lucas Yuri. This project is MIT licensed.