Repository navigation
Replies: 1 comment
|
negative count is a bookkeeping bug in the otel instrumentation, not your cluster. somewhere a disconnect decrements without a matching connect increment — classic when idle connections get reaped or slots migrate and the counter only tracks the happy path. to narrow it: does it go negative after idle timeouts, or after cluster failovers? that tells you which cleanup path double-decrements. either way this is worth filing as an issue — an otel counter going negative is a straight-up bug in redisotel no matter the trigger. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey, I'm using redisotel native metrics (go-redis 9.23.0) with a Redis Cluster client and noticed
db.client.connection.countgoes negative on the idle state.Looks like the pool pre-creates connections (we have PoolSize: 24), but
RecordConnectionCountnever gets called with +1 for those initial connections. So the counter starts at 0, and the first transitions out of idle drive it to -24 and it stays there.Is this expected? Should the hook emit an initial snapshot of existing connections when it attaches, or is there a different way we should be reading this metric?
All reactions