From f37cf916c2e1ece8c6d29d60e0f355bcb1ba32a2 Mon Sep 17 00:00:00 2001 From: istae <14264581+istae@users.noreply.github.com> Date: Thu, 19 May 2022 11:46:18 +0300 Subject: [PATCH] fix: smoke metric (#259) --- pkg/check/smoke/metrics.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/check/smoke/metrics.go b/pkg/check/smoke/metrics.go index 46d2178b3..5abd88b08 100644 --- a/pkg/check/smoke/metrics.go +++ b/pkg/check/smoke/metrics.go @@ -34,6 +34,14 @@ func newMetrics() metrics { Help: "Number of download attempts.", }, ), + UploadErrors: prometheus.NewCounter( + prometheus.CounterOpts{ + Namespace: m.Namespace, + Subsystem: subsystem, + Name: "upload_errors_count", + Help: "The total number of errors encountered before successful upload.", + }, + ), DownloadErrors: prometheus.NewCounter( prometheus.CounterOpts{ Namespace: m.Namespace,