diff --git a/lib/gat/handlers/pool/pools/hybrid/pool.go b/lib/gat/handlers/pool/pools/hybrid/pool.go index c7827cf82f2574941aebf977a4ebac4b9841ae9b..a32b558a6d64936222b11eff52d3118a3c855671 100644 --- a/lib/gat/handlers/pool/pools/hybrid/pool.go +++ b/lib/gat/handlers/pool/pools/hybrid/pool.go @@ -402,8 +402,7 @@ func (T *Pool) serveOnly(l prom.PoolHybridLabels, conn *fed.Conn, write bool) er if write { opL = l.ToOperation("primary") } else { - - opL = l.ToOperation("primary") + opL = l.ToOperation("replica") } for { diff --git a/lib/instrumentation/prom/pool_simple.go b/lib/instrumentation/prom/pool_simple.go index ceffaebd4ca1fab8548f034a3acc87983fb748f5..0ee132963e3e467081ced3778fcbb435322010f3 100644 --- a/lib/instrumentation/prom/pool_simple.go +++ b/lib/instrumentation/prom/pool_simple.go @@ -32,6 +32,6 @@ type OperationSimpleLabels struct { } var OperationSimple struct { - Acquire func(OperationSimpleLabels) prometheus.Histogram `name:"acquire_ms" buckets:"0.005,0.01,0.1,0.25,0.5,0.75,1,5,10,100,500,1000,5000" help:"ms to acquire from pool"` + Acquire func(OperationSimpleLabels) prometheus.Histogram `name:"acquire_ms" buckets:"0.005,0.01,0.1,0.25,0.5,0.75,1,5,10,100,500,1000" help:"ms to acquire from pool"` Execution func(OperationSimpleLabels) prometheus.Histogram `name:"execution_ms" buckets:"1,5,10,30,75,150,300,500,1000,2000,5000,7500,10000,15000,30000" help:"ms that the txn took to execute on remote"` }