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="__", )