bundles/zfs: add per-dataset metrics

This commit is contained in:
Franzi 2021-06-25 20:04:30 +02:00
parent 9cc324f84c
commit 1c10be5cdc
Signed by: kunsi
GPG key ID: 12E3D2136B818350
5 changed files with 792 additions and 1 deletions

View file

@ -84,9 +84,18 @@ if node.has_bundle('telegraf'):
'builtin': {
'zfs': [{
'poolMetrics': True,
'datasetMetrics': True,
}],
},
'exec': {
'zfs-dataset': {
'commands': ['sudo /usr/local/sbin/telegraf-per-dataset'],
'data_format': 'influx',
'timeout': '5s',
},
},
},
'sudo_commands': {
'/usr/local/sbin/telegraf-per-dataset',
},
}