graphs
This commit is contained in:
parent
3243bb1890
commit
d7e5483d74
2 changed files with 2 additions and 7 deletions
|
@ -46,12 +46,7 @@ defaults = {
|
||||||
'memory_rss',
|
'memory_rss',
|
||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
'diskio': [{
|
'diskio': [{}],
|
||||||
'fieldpass': [
|
|
||||||
'read_bytes',
|
|
||||||
'write_bytes',
|
|
||||||
],
|
|
||||||
}],
|
|
||||||
'kernel': [{}],
|
'kernel': [{}],
|
||||||
'mem': [{}],
|
'mem': [{}],
|
||||||
'processes': [{}],
|
'processes': [{}],
|
||||||
|
|
|
@ -7,8 +7,8 @@ from(bucket: "${bucket}")
|
||||||
% if function == 'derivative':
|
% if function == 'derivative':
|
||||||
|> derivative(nonNegative: true)
|
|> derivative(nonNegative: true)
|
||||||
% endif
|
% endif
|
||||||
|> aggregateWindow(every: duration(v: int(v: v.windowPeriod)*${resolution}), fn: mean, createEmpty: false)
|
|
||||||
% if negative:
|
% if negative:
|
||||||
|> map(fn: (r) => ({r with _value: r._value * - 1.0}))
|
|> map(fn: (r) => ({r with _value: r._value * - 1.0}))
|
||||||
% endif
|
% endif
|
||||||
|
|> aggregateWindow(every: duration(v: int(v: v.windowPeriod)*${resolution}), fn: mean, createEmpty: false)
|
||||||
|> yield(name: "mean")
|
|> yield(name: "mean")
|
||||||
|
|
Loading…
Reference in a new issue