From 8783ec91cf03b15c81a020edd2ddc3ebffbc217a Mon Sep 17 00:00:00 2001 From: "Lucian I. Last" Date: Thu, 19 Dec 2024 14:48:38 +0100 Subject: [PATCH] Rename gt80 to gte80 --- grpc/routes.go | 2 +- metrics/counters.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/grpc/routes.go b/grpc/routes.go index 733c274..2a522fd 100644 --- a/grpc/routes.go +++ b/grpc/routes.go @@ -95,7 +95,7 @@ func NewApp() *App { if lenPayloads == bufSizeFull { metrics.TotalBufferContentsFull.Inc() } else if lenPayloads >= bufSize80 { - metrics.TotalBufferContentsGt80.Inc() + metrics.TotalBufferContentsGte80.Inc() } else { metrics.TotalBufferContentsLt80.Inc() } diff --git a/metrics/counters.go b/metrics/counters.go index d3de34c..1601852 100644 --- a/metrics/counters.go +++ b/metrics/counters.go @@ -14,7 +14,7 @@ var ( Name: "tigerbeetleapi_buffer_contents_lt80_total", Help: "Tigerbeetle buffer filled size is less than 80%", }) - TotalBufferContentsGt80 = promauto.NewCounter(prometheus.CounterOpts{ + TotalBufferContentsGte80 = promauto.NewCounter(prometheus.CounterOpts{ Name: "tigerbeetleapi_buffer_contents_gte80_total", Help: "Tigerbeetle buffer filled size is greater than or equal to 80%", })