Compare commits
2 commits
bbef19a73d
...
ef461fec1c
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ef461fec1c | ||
![]() |
e5b1bc0921 |
3 changed files with 45 additions and 2 deletions
|
@ -46,7 +46,12 @@ defaults = {
|
|||
'memory_rss',
|
||||
],
|
||||
}],
|
||||
'diskio': [{}],
|
||||
'diskio': [{
|
||||
'fieldpass': [
|
||||
'read_bytes',
|
||||
'write_bytes',
|
||||
],
|
||||
}],
|
||||
'kernel': [{}],
|
||||
'mem': [{}],
|
||||
'processes': [{}],
|
||||
|
@ -60,6 +65,7 @@ defaults = {
|
|||
'cpu',
|
||||
'mem',
|
||||
'disk_io',
|
||||
'disk_usage',
|
||||
'net_io',
|
||||
'proc_cpu',
|
||||
'proc_ram',
|
||||
|
|
|
@ -5,7 +5,7 @@ from(bucket: "${bucket}")
|
|||
|> filter(fn: (r) => ${' or '.join(f'r["{key}"] == "{value}"' for value in values)})
|
||||
% endfor
|
||||
% if function == 'derivative':
|
||||
|> derivative()
|
||||
|> derivative(nonNegative: true)
|
||||
% endif
|
||||
% if negative:
|
||||
|> map(fn: (r) => ({r with _value: r._value * - 1.0}))
|
||||
|
|
37
data/grafana/rows/disk_usage.py
Normal file
37
data/grafana/rows/disk_usage.py
Normal file
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
'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