lurory / carona-bot

Bot for sharing rides.
MIT License
2 stars 0 forks source link

Implement instrumentation with Prometheus client #19

Open fabianaferreira opened 2 years ago

fabianaferreira commented 2 years ago

Is your feature request related to a problem? Please describe. It was possible to identify through railway.app metrics that we might have been facing a memory leak due to misusage of global variables. To better investigate that, we could leverage better instrumentation.

Describe the solution you'd like Have a dashboard on Grafana to monitor GC, CPU, and memory. To do that, we need to instrument our application to register metrics and push to Prometheus.

We can use prom-client to do so.