diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-09-05 15:35:08 +0200 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-09-05 15:36:47 +0200 |
commit | 5e06c377452d839fdec74d9542c115d667b2963b (patch) | |
tree | 3294fe82d9e20cd739aa338deaa334b97cf6cb6d | |
parent | f5fab097a4c5a58a8ca99bb5d17a80c3fe5bd70c (diff) | |
download | gitlab-ce-5e06c377452d839fdec74d9542c115d667b2963b.tar.gz |
Fix legend
-rw-r--r-- | app/models/prometheus_metric.rb | 4 |
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 |