From cde045c45c427043985a43bb32d5ab667bcae3d1 Mon Sep 17 00:00:00 2001 From: a <a@tuxpa.in> Date: Tue, 18 Jun 2024 13:19:29 -0500 Subject: [PATCH] noot --- lib/gat/handlers/pool/pools/hybrid/pool.go | 3 +-- lib/instrumentation/prom/pool_simple.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/gat/handlers/pool/pools/hybrid/pool.go b/lib/gat/handlers/pool/pools/hybrid/pool.go index c7827cf8..a32b558a 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 ceffaebd..0ee13296 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"` } -- GitLab