From df45b9e0bb8231b2dae0edb89dc45555367271c2 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 5 Sep 2023 07:08:53 +0300 Subject: [PATCH] fix label names Signed-off-by: Vasiliy Tolstov --- options.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/options.go b/options.go index acac043..7e35d13 100644 --- a/options.go +++ b/options.go @@ -44,13 +44,13 @@ var ( meterRequestDurationSeconds = "request_duration_seconds" labelUnknown = "unknown" - labelQuery = "db.statement" - labelMethod = "db.method" + labelQuery = "db_statement" + labelMethod = "db_method" labelStatus = "status" labelSuccess = "success" labelFailure = "failure" - labelHost = "db.host" - labelDatabase = "db.name" + labelHost = "db_host" + labelDatabase = "db_name" ) // Options struct holds wrapper options