This commit is contained in:
mwiegand 2021-10-27 23:30:17 +02:00
parent 6b1674c93a
commit 9d6b6777bf
2 changed files with 24 additions and 24 deletions

View file

@ -125,6 +125,9 @@ for dashboard_id, monitored_node in enumerate(monitored_nodes, start=1):
if 'legend' in panel_config: if 'legend' in panel_config:
panel['options']['legend'].update(panel_config['legend']) panel['options']['legend'].update(panel_config['legend'])
if 'tooltip' in panel_config:
panel['options']['tooltip']['mode'] = panel_config['tooltip']
for query_name, query_config in panel_config['queries'].items(): for query_name, query_config in panel_config['queries'].items():
panel['targets'].append({ panel['targets'].append({

View file

@ -13,55 +13,52 @@
'function': 'mean', 'function': 'mean',
}, },
}, },
'min': 0,
'unit': 'bytes', 'unit': 'bytes',
}, },
'hits': { 'hits': {
'stacked': True,
'queries': { 'queries': {
'hits': { 'hits': {
'filters': { 'filters': {
'_measurement': 'zfs', '_measurement': 'zfs',
'_field': [ '_field': [
'arcstats_hits', 'arcstats_demand_data_hits',
'arcstats_demand_metadata_hits',
'arcstats_prefetch_data_hits',
'arcstats_prefetch_metadata_hits',
], ],
}, },
'function': 'derivative', 'function': 'derivative',
}, },
'misses': {
'filters': {
'_measurement': 'zfs',
'_field': [
'arcstats_misses',
],
},
'function': 'derivative',
'negative': True,
},
}, },
'legend': {
'displayMode': 'hidden',
},
'tooltip': 'multi',
}, },
'l2_hits': { 'misses': {
'stacked': True,
'queries': { 'queries': {
'hits': {
'filters': {
'_measurement': 'zfs',
'_field': [
'arcstats_l2_hits',
],
},
'function': 'derivative',
},
'misses': { 'misses': {
'filters': { 'filters': {
'_measurement': 'zfs', '_measurement': 'zfs',
'_field': [ '_field': [
'arcstats_l2_misses', 'arcstats_demand_data_misses',
'arcstats_demand_metadata_misses',
'arcstats_prefetch_data_misses',
'arcstats_prefetch_metadata_misses',
], ],
}, },
'function': 'derivative', 'function': 'derivative',
'negative': True,
}, },
}, },
'legend': {
'displayMode': 'hidden',
},
'tooltip': 'multi',
}, },
'l2_io': { 'l2': {
'queries': { 'queries': {
'read': { 'read': {
'filters': { 'filters': {