Commit 5e06c377 authored by Kamil Trzciński's avatar Kamil Trzciński

Fix legend

parent f5fab097
...@@ -76,14 +76,14 @@ class PrometheusMetric < ActiveRecord::Base ...@@ -76,14 +76,14 @@ class PrometheusMetric < ActiveRecord::Base
def query_series def query_series
case legend case legend
when 'Status Code' when 'Status Code'
{ [{
label: 'status_code', label: 'status_code',
when: [ when: [
{ value: '2xx', color: 'green' }, { value: '2xx', color: 'green' },
{ value: '4xx', color: 'orange' }, { value: '4xx', color: 'orange' },
{ value: '5xx', color: 'red' } { value: '5xx', color: 'red' }
] ]
} }]
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment