2025-11-28 14:35:21 +08:00

25 lines
840 B
YAML

global:
http_listen: "0.0.0.0:19100" # HTTP 监听地址
scrape_interval_seconds: 60 # 调短一点,方便联调
netconf_port: 830 # 默认值,不影响 runtime 设备
connect_timeout_seconds: 5
rpc_timeout_seconds: 30
max_workers: 5
api_token: "changeme" # curl 要带的 Token
runtime_db_path: "./devices.db"
# Fernet 密钥:先生成(下一步的命令),把输出粘到这里
password_secret: "mnp7sBccIOehLUwdk_vqMk2gTSPQxhmR9yDbpSHBvFY="
ssh_keepalive_seconds: 30
failure_threshold: 3
max_backoff_factor: 8
shutdown_timeout_seconds: 30
log_level: INFO
log_to_stdout: true
log_file: "./exporter.log"
devices: [] # 静态设备先留空,全部通过 API 注册