proc ram cpu combined

This commit is contained in:
mwiegand 2022-08-12 18:22:01 +02:00
parent 63b68b8d3e
commit 6fef63655c
4 changed files with 51 additions and 54 deletions

View file

@ -79,8 +79,7 @@ defaults = {
'disk_io', 'disk_io',
'disk_usage', 'disk_usage',
'net_io', 'net_io',
'proc_cpu', 'proc_cpu_ram',
'proc_ram',
'proc_io', 'proc_io',
}, },
'sudoers': { 'sudoers': {

View file

@ -1,26 +0,0 @@
{
'process_cpu': {
'stacked': True,
'queries': {
'cpu': {
'filters': {
'_measurement': 'procstat',
'_field': [
'cpu_usage',
],
},
'minimum': 0.2,
},
},
'unit': 'percent',
'display_name': '__field.labels.process_name',
'legend': {
'displayMode': 'table',
'placement': 'right',
'calcs': [
'mean',
'max',
],
},
},
}

View file

@ -0,0 +1,50 @@
{
'cpu': {
'stacked': True,
'queries': {
'cpu': {
'filters': {
'_measurement': 'procstat',
'_field': [
'cpu_usage',
],
},
'minimum': 0.2,
},
},
'unit': 'percent',
'display_name': '__field.labels.process_name',
'legend': {
'displayMode': 'table',
'placement': 'right',
'calcs': [
'mean',
'max',
],
},
},
'ram': {
'stacked': True,
'queries': {
'ram': {
'filters': {
'_measurement': 'procstat',
'_field': [
'memory_rss',
],
},
'minimum': 10*(10**6),
},
},
'unit': 'bytes',
'display_name': '__field.labels.process_name',
'legend': {
'displayMode': 'table',
'placement': 'right',
'calcs': [
'mean',
'max',
],
},
},
}

View file

@ -1,26 +0,0 @@
{
'process_ram': {
'stacked': True,
'queries': {
'ram': {
'filters': {
'_measurement': 'procstat',
'_field': [
'memory_rss',
],
},
'minimum': 10*(10**6),
},
},
'unit': 'bytes',
'display_name': '__field.labels.process_name',
'legend': {
'displayMode': 'table',
'placement': 'right',
'calcs': [
'mean',
'max',
],
},
},
}