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

Fix legend

parent f5fab097
......@@ -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
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