diff --git a/.vscode/launch.json b/.vscode/launch.json index f018c2c..e1aebf7 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -12,6 +12,7 @@ "env": { "METRIC__INTERVAL": "5", "METRIC__LOG__ENABLED": "True", + "METRIC__EXTERNAL__ENABLED": "True", "METRIC__EXTERNAL__EXECUTABLES": "[\"${workspaceFolder}/dummy-metric\"]", }, "justMyCode": true diff --git a/kiwi_simple_metrics/settings/metric.py b/kiwi_simple_metrics/settings/metric.py index 9b3f71b..dc597b8 100644 --- a/kiwi_simple_metrics/settings/metric.py +++ b/kiwi_simple_metrics/settings/metric.py @@ -86,6 +86,7 @@ class DiskMS(MetricSettings): class ExternalMS(MetricSettings): name: str = "External Metric" + enabled: bool = False threshold: float = 0 # path to executable files