diff --git a/test/e2e/metrics_test.go b/test/e2e/metrics_test.go index e69628796267..129fb56a71c7 100644 --- a/test/e2e/metrics_test.go +++ b/test/e2e/metrics_test.go @@ -44,9 +44,9 @@ func (s *MetricsSuite) TestMetricsEndpoint() { Body(). Contains(`HELP argo_workflows_count`). Contains(`HELP argo_workflows_k8s_request_total`). - Contains(`argo_workflows_k8s_request_total{kind="leases",status_code="200",verb="Get"}`). - Contains(`argo_workflows_k8s_request_total{kind="workflowtemplates",status_code="200",verb="List"}`). - Contains(`argo_workflows_k8s_request_total{kind="workflowtemplates",status_code="200",verb="Watch"}`). + Contains(`argo_workflows_k8s_request_total{kind="leases",status_code="200",verb="get"}`). + Contains(`argo_workflows_k8s_request_total{kind="workflowtemplates",status_code="200",verb="list"}`). + Contains(`argo_workflows_k8s_request_total{kind="workflowtemplates",status_code="200",verb="watch"}`). Contains(`HELP argo_workflows_pods_count`). Contains(`HELP argo_workflows_workers_busy`). Contains(`HELP argo_workflows_workflow_condition`). diff --git a/util/k8s/parse.go b/util/k8s/parse.go index 1a6cb1163353..885c11015c19 100644 --- a/util/k8s/parse.go +++ b/util/k8s/parse.go @@ -1,10 +1,11 @@ package k8s import ( - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" "net/http" "regexp" + + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" ) type kubeRequest struct {