go-redis icon indicating copy to clipboard operation
go-redis copied to clipboard

Prometheus metrics at commands level

Open vseoane96 opened this issue 2 years ago • 2 comments

This library provides awesome features and functionalities and it is probably the most powerful Go client for Redis. However, in terms of observability, I can see there is only a prometheus collector for pool metrics. I am missing metrics at the commands level, which are very useful when troubleshooting and analysing the operations taking place in the Redis:

  • Histogram of duration of the commands
  • Counter of errors

Even if there is some other project adding the metrics through a hook, I'd like to discuss if this is something planned to be added to the project or if it has been discarded for any reason.

vseoane96 avatar Jun 19 '23 08:06 vseoane96

There are OpenTelemetry metrics that can be exported to Prometheus: https://redis.uptrace.dev/guide/go-redis-monitoring.html

vmihailenco avatar Jun 19 '23 08:06 vmihailenco

Can we use this without otel collector? Just the Prometheus exported on the http port?

a5r0n avatar Mar 19 '24 17:03 a5r0n