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
|
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
|
||||||
|
|
Loading…
Reference in a new issue