30 lines
769 B
Python
30 lines
769 B
Python
from pydantic_settings import BaseSettings
|
|
from typing import Optional
|
|
|
|
|
|
class AppSettings(BaseSettings):
|
|
# Log settings
|
|
LOG_BASE_PATH: str = "./logs"
|
|
BACKEND_LOG_FILE_NAME: str = "metrics"
|
|
APPLICATION_ACTIVITY_LOG: str = "metrics-activity"
|
|
|
|
# StarRocks database settings
|
|
STARROCKS_HOST: str = "freeleaps-starrocks-cluster-fe-service.freeleaps-data-platform.svc"
|
|
STARROCKS_PORT: int = 9030
|
|
STARROCKS_USER: str = "root"
|
|
STARROCKS_PASSWORD: str = ""
|
|
STARROCKS_DATABASE: str = "freeleaps"
|
|
|
|
# Prometheus settings
|
|
PROMETHEUS_ENDPOINT: str = "http://localhost:9090"
|
|
|
|
METRICS_ENABLED: bool = False
|
|
PROBES_ENABLED: bool = True
|
|
|
|
|
|
class Config:
|
|
env_file = "local.env"
|
|
|
|
|
|
app_settings = AppSettings()
|