mirror of
https://github.com/yavook/kiwi-simple-metrics.git
synced 2024-11-21 15:23:01 +00:00
env_prefix
This commit is contained in:
parent
e4296327b0
commit
ef6d13a704
2 changed files with 5 additions and 5 deletions
8
.vscode/launch.json
vendored
8
.vscode/launch.json
vendored
|
@ -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
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ from .metric import MetricSettings
|
|||
|
||||
class Settings(BaseSettings):
|
||||
model_config = SettingsConfigDict(
|
||||
env_prefix="METRIC__",
|
||||
env_prefix="METRICS__",
|
||||
env_nested_delimiter="__",
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue