Commit c89a5204 authored by Kamil Trzciński's avatar Kamil Trzciński

Fix legend

parent 6af70120
...@@ -78,14 +78,14 @@ class PrometheusMetric < ActiveRecord::Base ...@@ -78,14 +78,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