Compare commits
No commits in common. "ef461fec1cae3b2878d6be1080c10cba1443c304" and "bbef19a73df3800f70e8d5cb2601e9c77ddccb40" have entirely different histories.
ef461fec1c
...
bbef19a73d
3 changed files with 2 additions and 45 deletions
|
@ -46,12 +46,7 @@ defaults = {
|
||||||
'memory_rss',
|
'memory_rss',
|
||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
'diskio': [{
|
'diskio': [{}],
|
||||||
'fieldpass': [
|
|
||||||
'read_bytes',
|
|
||||||
'write_bytes',
|
|
||||||
],
|
|
||||||
}],
|
|
||||||
'kernel': [{}],
|
'kernel': [{}],
|
||||||
'mem': [{}],
|
'mem': [{}],
|
||||||
'processes': [{}],
|
'processes': [{}],
|
||||||
|
@ -65,7 +60,6 @@ defaults = {
|
||||||
'cpu',
|
'cpu',
|
||||||
'mem',
|
'mem',
|
||||||
'disk_io',
|
'disk_io',
|
||||||
'disk_usage',
|
|
||||||
'net_io',
|
'net_io',
|
||||||
'proc_cpu',
|
'proc_cpu',
|
||||||
'proc_ram',
|
'proc_ram',
|
||||||
|
|
|
@ -5,7 +5,7 @@ from(bucket: "${bucket}")
|
||||||
|> filter(fn: (r) => ${' or '.join(f'r["{key}"] == "{value}"' for value in values)})
|
|> filter(fn: (r) => ${' or '.join(f'r["{key}"] == "{value}"' for value in values)})
|
||||||
% endfor
|
% endfor
|
||||||
% if function == 'derivative':
|
% if function == 'derivative':
|
||||||
|> derivative(nonNegative: true)
|
|> derivative()
|
||||||
% endif
|
% endif
|
||||||
% if negative:
|
% if negative:
|
||||||
|> map(fn: (r) => ({r with _value: r._value * - 1.0}))
|
|> map(fn: (r) => ({r with _value: r._value * - 1.0}))
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
{
|
|
||||||
'root_usage': {
|
|
||||||
'stacked': True,
|
|
||||||
'queries': {
|
|
||||||
'usage': {
|
|
||||||
'filters': {
|
|
||||||
'_measurement': 'disk',
|
|
||||||
'path': '/',
|
|
||||||
'_field': [
|
|
||||||
'used',
|
|
||||||
'free',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
'function': 'mean',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'min': 0,
|
|
||||||
'unit': 'bytes',
|
|
||||||
},
|
|
||||||
'root_inodes': {
|
|
||||||
'stacked': True,
|
|
||||||
'queries': {
|
|
||||||
'inodes': {
|
|
||||||
'filters': {
|
|
||||||
'_measurement': 'disk',
|
|
||||||
'path': '/',
|
|
||||||
'_field': [
|
|
||||||
'inodes_used',
|
|
||||||
'inodes_free',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
'function': 'mean',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'min': 0,
|
|
||||||
},
|
|
||||||
}
|
|
Loading…
Reference in a new issue