dragonflydb / dragonfly

A modern replacement for Redis and Memcached
https://www.dragonflydb.io/
Other
25.96k stars 954 forks source link

Add stats for buffer size of capture reply builder #4133

Closed adiholden closed 23 hours ago

adiholden commented 1 week ago

When capture reply builder buffer grows in server we do not count the buffer size and expose this.

  1. add the relevant struct in FacadeStats
  2. in capture reply builder add the relevant logic to account the used memory
  3. expose this stats in info memory and Prometheus metrics

related to #4002

BorysTheDev commented 23 hours ago

fixed by #4147