Fix legend
This commit is contained in:
parent
f5fab097a4
commit
5e06c37745
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue