Open JyotinderSingh opened 1 month ago
@swarajrb7 would you be interested in taking this up?
Yes
Hey, it may be good to discuss the design before you begin working on the implementation. We need to ensure this does not introduce any performance regressions on the critical path. Feel free to let us know on discord if you'd like to discuss this in a larger group.
I am researching on how this is implemented in Redis. I do have some questions about it. I will let you know as soon as possible. @JyotinderSingh
@JyotinderSingh can we discuss this today? i have send a message on discord channel
I am attaching a file in which i have written down my observation and my queries. Please take a look and give me suggestions/improvement to make. Latency Monitoring in DiceDB.md @apoorvyadav1111 @JyotinderSingh @AshwinKul28 @lucifercr07
@swarajrb7 Can you also take a look at Opentelemetry SDK for Golang? https://opentelemetry.io/docs/languages/go/instrumentation/#metrics Being able to support Opentelemetry would allow us to be compatible with a lot of vendors out of the box and has support for common use cases like histograms, medians, percentiles, etc.
@gauravsarma1992 okay
We need to support the different
LATENCY
commands which redis supports. This requires quite a few changes to the codebase.Your task as a part of this issue would be to design a latency monitoring approach for dicedb, the approach should allow us to serve all the different latency commands:
LATENCY RESET
LATENCY HISTORY
LATENCY LATEST
LATENCY HISTOGRAM
(low priority)LATENCY GRAPH
(low priority)