bundlewrap/data/grafana/rows/zfs_arc.py
2021-10-27 20:40:09 +02:00

62 lines
1.6 KiB
Python

{
'l2_size': {
'queries': {
'l2_size': {
'filters': {
'_measurement': 'zfs',
'_field': [
'arcstats_l2_size',
],
},
'function': 'mean',
},
},
'unit': 'bytes',
},
'l2_io': {
'queries': {
'read': {
'filters': {
'_measurement': 'zfs',
'_field': [
'arcstats_l2_read_bytes',
],
},
'function': 'derivative',
},
'write': {
'filters': {
'_measurement': 'zfs',
'_field': [
'arcstats_l2_write_bytes',
],
},
'function': 'derivative',
'negative': True,
},
},
},
'l2_cache_hits': {
'queries': {
'hits': {
'filters': {
'_measurement': 'zfs',
'_field': [
'arcstats_l2_hits',
],
},
'function': 'derivative',
},
'misses': {
'filters': {
'_measurement': 'zfs',
'_field': [
'arcstats_l2_misses',
],
},
'function': 'derivative',
'negative': True,
},
},
},
}