From 014849a1be3feaab79db4111dc5179d3f59a011d Mon Sep 17 00:00:00 2001 From: Aleksey Myasnikov Date: Sun, 31 Dec 2023 03:21:05 +0300 Subject: [PATCH 1/2] promlinter enabled --- .golangci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index b458386b2..7f2113da1 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -245,7 +245,6 @@ linters: - nonamedreturns - nosnakecase - paralleltest - - promlinter - protogetter - scopelint - structcheck From ce8c48e8f82ac143855f5f2063d90798230daaab Mon Sep 17 00:00:00 2001 From: Aleksey Myasnikov Date: Sun, 31 Dec 2023 11:34:30 +0300 Subject: [PATCH 2/2] fix issues --- examples/serverless/url_shortener/service.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/serverless/url_shortener/service.go b/examples/serverless/url_shortener/service.go index 892970c92..528549ce6 100644 --- a/examples/serverless/url_shortener/service.go +++ b/examples/serverless/url_shortener/service.go @@ -89,6 +89,7 @@ func getService(ctx context.Context, dsn string, opts ...ydb.Option) (s *service calls = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Namespace: "app", Name: "calls", + Help: "application calls counter", }, []string{ "method", "success", @@ -96,6 +97,7 @@ func getService(ctx context.Context, dsn string, opts ...ydb.Option) (s *service callsLatency = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Namespace: "app", Name: "latency", + Help: "application calls latencies", Buckets: []float64{ (1 * time.Millisecond).Seconds(), (5 * time.Millisecond).Seconds(), @@ -114,6 +116,7 @@ func getService(ctx context.Context, dsn string, opts ...ydb.Option) (s *service callsErrors = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Namespace: "app", Name: "errors", + Help: "application errors counter", }, []string{ "method", })