Skip to content

Latest commit

 

History

History
70 lines (40 loc) · 2.11 KB

README.md

File metadata and controls

70 lines (40 loc) · 2.11 KB

NodeJS-Observability 📊

This project have a complete Observability setup for a NodeJS application. Using Grafana, Prometheus and Loki the project results is below:

dashboard-gift

Starting

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

Metrics configuration

  • Access localhost:3333 to login at Grafana user=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

Usage

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!

Dashboards Screenshots

health-metrics

requests-metrics

logs

Architecture

architecture

Autor

👤 Lucas Yuri

📝 License

Copyright © 2022 Lucas Yuri. This project is MIT licensed.