Merge "Allow repeating panels and to set minspan"

This commit is contained in:
Zuul 2018-02-16 20:05:24 +00:00 committed by Gerrit Code Review
commit e951216fc6
3 changed files with 6 additions and 0 deletions

View File

@ -143,10 +143,12 @@ class Graph(Base):
v.Optional('legend'): v.All(legend),
v.Required('lines', default=True): v.All(bool),
v.Required('linewidth', default=2): v.All(int),
v.Optional('minSpan'): v.All(int, v.Range(min=0, max=12)),
v.Optional('nullPointMode'): v.All(null_point_modes),
v.Required('percentage', default=False): v.All(bool),
v.Required('pointradius', default=5): v.All(int),
v.Required('points', default=False): v.All(bool),
v.Optional('repeat'): v.All(str),
v.Optional('rightYAxisLabel'): v.All(str, v.Length(min=1)),
v.Optional('seriesOverrides'): v.All(series_overrides,
v.Length(min=1)),

View File

@ -26,9 +26,11 @@
},
"lines": true,
"linewidth": 2,
"minSpan": 4,
"percentage": false,
"pointradius": 5,
"points": false,
"repeat": "$hostname",
"span": 12,
"stack": false,
"steppedLine": false,

View File

@ -13,6 +13,8 @@ dashboard:
- title: no title (click here)
type: graph
datasource: graphite
minSpan: 4
repeat: $hostname
targets:
- target: $hostname.Cpu.cpu_prct_used
legend: