#Right way to do metrics? Prometheus + Grafana

1 messages · Page 1 of 1 (latest)

bold flax
#

I want to integrate metrics into my nestjs application. I intend to deploy using kubernetes and have prometheus+grafana at the cluster level for server metrics around response times, requests/s, pod resource usage... etc.

Also at the application level so I can have custom metrics (like requests made to 3rd party API, cache hit/miss rates etc).

I've been looking at tutorials but because of the variety of ways it can be done I'm hesitant to start using a particular library or method incase they are outdated or not considered best-practice. Nestjs officials docs also don't seem to promote any particular way.

open sparrow
bold flax
open sparrow
#

It's actually just a simple wrapper over opentelementry + prometheus. Read through the readme and you should undertand most of it

#

Ah, I see, you don't need tracing just yet.

#

If you don't want to use a wrapper libray, just look at the source and see how it's implemented