summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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