From ef6d13a7044ae4e8cb1cffcefb4d0813b8320992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Sat, 2 Sep 2023 15:26:33 +0000 Subject: [PATCH] env_prefix --- .vscode/launch.json | 8 ++++---- kiwi_simple_metrics/settings/__init__.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index c3af61b..901abe3 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,10 +10,10 @@ "request": "launch", "module": "kiwi_simple_metrics.main", "env": { - "METRIC__INTERVAL": "5", - "METRIC__LOG__ENABLED": "True", - "METRIC__EXTERNAL__ENABLED": "True", - "METRIC__EXTERNAL__EXECUTABLES": "[\"${workspaceFolder}/example/dummy-metric\"]", + "METRICS__INTERVAL": "5", + "METRICS__LOG__ENABLED": "True", + "METRICS__EXTERNAL__ENABLED": "True", + "METRICS__EXTERNAL__EXECUTABLES": "[\"${workspaceFolder}/example/dummy-metric\"]", }, "justMyCode": true } diff --git a/kiwi_simple_metrics/settings/__init__.py b/kiwi_simple_metrics/settings/__init__.py index 0d98373..7c42a83 100644 --- a/kiwi_simple_metrics/settings/__init__.py +++ b/kiwi_simple_metrics/settings/__init__.py @@ -6,7 +6,7 @@ from .metric import MetricSettings class Settings(BaseSettings): model_config = SettingsConfigDict( - env_prefix="METRIC__", + env_prefix="METRICS__", env_nested_delimiter="__", )