pressure stall telegraf

This commit is contained in:
mwiegand 2022-08-11 12:37:05 +02:00
parent 706c4028f8
commit 6c2d4ca69f
2 changed files with 21 additions and 7 deletions

View file

@ -20,6 +20,11 @@ files = {
'source': f"https://dl.sublimity.de/telegraf-procio/telegraf-procio-{node.metadata.get('system/architecture')}-latest", 'source': f"https://dl.sublimity.de/telegraf-procio/telegraf-procio-{node.metadata.get('system/architecture')}-latest",
'mode': '0755', 'mode': '0755',
}, },
'/usr/local/share/telegraf/pressure_stall': {
'content_type': 'download',
'source': f"https://dl.sublimity.de/telegraf-pressure-stall/telegraf-pressure-stall-{node.metadata.get('system/architecture')}-latest",
'mode': '0755',
},
} }
svc_systemd['telegraf'] = { svc_systemd['telegraf'] = {

View file

@ -52,13 +52,22 @@ defaults = {
'swap': {h({})}, 'swap': {h({})},
'system': {h({})}, 'system': {h({})},
'net': {h({})}, 'net': {h({})},
'exec': {h({ 'exec': {
'commands': [ h({
f'sudo /usr/local/share/telegraf/procio', 'commands': [
], f'sudo /usr/local/share/telegraf/procio',
'data_format': 'influx', ],
'interval': '20s', 'data_format': 'influx',
})}, 'interval': '20s',
}),
h({
'commands': [
f'/usr/local/share/telegraf/pressure_stall',
],
'data_format': 'influx',
'interval': '10s',
}),
},
}, },
}, },
}, },