Expand description
설정 관리 — ironpost.toml 파싱 및 런타임 설정
IronpostConfig는 모든 모듈의 설정을 담는 최상위 구조체입니다.
§설정 로딩 우선순위
- CLI 인자 (최고 우선)
- 환경변수 (
IRONPOST_EBPF_INTERFACE=eth0형식) - 설정 파일 (
ironpost.toml) - 기본값 (
Default구현)
§사용 예시
use ironpost_core::config::IronpostConfig;
// 파일에서 로드 + 환경변수 오버라이드
let config = IronpostConfig::load("ironpost.toml").await?;
// TOML 문자열에서 직접 파싱
let config = IronpostConfig::parse("[general]\nlog_level = \"debug\"")?;Structs§
- Container
Config - 컨테이너 가드 설정
- Ebpf
Config - eBPF 엔진 설정
- General
Config - 일반 설정
- Ironpost
Config - Ironpost 통합 설정
- LogPipeline
Config - 로그 파이프라인 설정
- Metrics
Config - 메트릭 수집 및 Prometheus 노출 설정
- Sbom
Config - SBOM 스캐너 설정
- Storage
Config - 스토리지 설정