diff --git a/metrics-operator/controllers/common/providers/elk/elk.go b/metrics-operator/controllers/common/providers/elk/elk.go index 7b03c1fd9d..154759b7ef 100644 --- a/metrics-operator/controllers/common/providers/elk/elk.go +++ b/metrics-operator/controllers/common/providers/elk/elk.go @@ -7,9 +7,9 @@ import ( "strings" "time" + elastic "github.com/elastic/go-elasticsearch/v8" "github.com/go-logr/logr" metricsapi "github.com/keptn/lifecycle-toolkit/metrics-operator/api/v1" - elastic "github.com/elastic/go-elasticsearch/v8" "sigs.k8s.io/controller-runtime/pkg/client" ) @@ -148,4 +148,4 @@ func (r *KeptnElasticProvider) extractMetric(result map[string]interface{}) (str value := fmt.Sprintf("%d", response.Hits.Total.Value) return value, nil -} \ No newline at end of file +} diff --git a/metrics-operator/controllers/common/providers/elk/elk_test.go b/metrics-operator/controllers/common/providers/elk/elk_test.go index bbbc1fd7d6..9484f4cb1d 100644 --- a/metrics-operator/controllers/common/providers/elk/elk_test.go +++ b/metrics-operator/controllers/common/providers/elk/elk_test.go @@ -229,4 +229,4 @@ func TestKeptnElasticProvider_extractMetric(t *testing.T) { } }) } -} \ No newline at end of file +}