summaryrefslogtreecommitdiff
path: root/app/models/prometheus_metric.rb
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-09-05 15:35:08 +0200
committerKamil Trzciński <ayufan@ayufan.eu>2018-09-05 15:36:47 +0200
commit5e06c377452d839fdec74d9542c115d667b2963b (patch)
tree3294fe82d9e20cd739aa338deaa334b97cf6cb6d /app/models/prometheus_metric.rb
parentf5fab097a4c5a58a8ca99bb5d17a80c3fe5bd70c (diff)
downloadgitlab-ce-5e06c377452d839fdec74d9542c115d667b2963b.tar.gz
Fix legend
Diffstat (limited to 'app/models/prometheus_metric.rb')
-rw-r--r--app/models/prometheus_metric.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/prometheus_metric.rb b/app/models/prometheus_metric.rb
index 2d6dbca6a72..ce2db9cb44c 100644
--- a/app/models/prometheus_metric.rb
+++ b/app/models/prometheus_metric.rb
@@ -76,14 +76,14 @@ class PrometheusMetric < ActiveRecord::Base
def query_series
case legend
when 'Status Code'
- {
+ [{
label: 'status_code',
when: [
{ value: '2xx', color: 'green' },
{ value: '4xx', color: 'orange' },
{ value: '5xx', color: 'red' }
]
- }
+ }]
end
end
end