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

@ -126,6 +126,9 @@ for dashboard_id, monitored_node in enumerate(monitored_nodes, start=1):
if 'legend' in panel_config:
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():
panel['targets'].append({
'refId': query_name,

View file

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