summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-29 03:08:16 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-29 03:08:16 +0000
commitf51c6a69f9804d1dde7a0f1717a91ca97001f871 (patch)
treec54249c948799604d3fbef42c49bc69cc57c2eb9 /qa
parent859ee9fc169e0a899af3a683ea452d06334d15b9 (diff)
downloadgitlab-ce-f51c6a69f9804d1dde7a0f1717a91ca97001f871.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/service/praefect_manager.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/qa/qa/service/praefect_manager.rb b/qa/qa/service/praefect_manager.rb
index c332e7a6198..42841e576f5 100644
--- a/qa/qa/service/praefect_manager.rb
+++ b/qa/qa/service/praefect_manager.rb
@@ -173,6 +173,8 @@ module QA
raise PrometheusQueryError, "Unable to query read distribution metrics" unless result['status'] == 'success'
+ raise PrometheusQueryError, "No read distribution metrics found" if result['data']['result'].empty?
+
result['data']['result'].map { |result| { node: result['metric']['storage'], value: result['value'][1].to_i } }
end