From 6c2d4ca69f485f777d12f33ea3241d6d5839ce84 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Thu, 11 Aug 2022 12:37:05 +0200 Subject: [PATCH] pressure stall telegraf --- bundles/telegraf/items.py | 5 +++++ bundles/telegraf/metadata.py | 23 ++++++++++++++++------- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/bundles/telegraf/items.py b/bundles/telegraf/items.py index 8db05aa..6974535 100644 --- a/bundles/telegraf/items.py +++ b/bundles/telegraf/items.py @@ -20,6 +20,11 @@ files = { 'source': f"https://dl.sublimity.de/telegraf-procio/telegraf-procio-{node.metadata.get('system/architecture')}-latest", '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'] = { diff --git a/bundles/telegraf/metadata.py b/bundles/telegraf/metadata.py index 8f72b7c..1a25d11 100644 --- a/bundles/telegraf/metadata.py +++ b/bundles/telegraf/metadata.py @@ -52,13 +52,22 @@ defaults = { 'swap': {h({})}, 'system': {h({})}, 'net': {h({})}, - 'exec': {h({ - 'commands': [ - f'sudo /usr/local/share/telegraf/procio', - ], - 'data_format': 'influx', - 'interval': '20s', - })}, + 'exec': { + h({ + 'commands': [ + f'sudo /usr/local/share/telegraf/procio', + ], + 'data_format': 'influx', + 'interval': '20s', + }), + h({ + 'commands': [ + f'/usr/local/share/telegraf/pressure_stall', + ], + 'data_format': 'influx', + 'interval': '10s', + }), + }, }, }, },