alexandrezanatta / NodeJS-Observability

Fork do projeto do Luryy, apresentado no TDC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Fork do projeto do Luryy, apresentado no TDC

License:MIT License


Languages

Language:JavaScript 95.6%Language:Dockerfile 4.4%