diff --git a/server/src/banner.rs b/server/src/banner.rs index fa817eac1..30199e34d 100644 --- a/server/src/banner.rs +++ b/server/src/banner.rs @@ -123,6 +123,14 @@ async fn storage_info(config: &Config) { size ); } + if let Some(path) = &config.parseable.hot_tier_storage_path { + eprintln!( + "\ + {:8}Hot Tier: \"Enabled, Path: {}\"", + "", + path.display(), + ); + } eprintln!( "\ diff --git a/server/src/handlers/http/about.rs b/server/src/handlers/http/about.rs index 4acd01ad2..8e2d6ccf3 100644 --- a/server/src/handlers/http/about.rs +++ b/server/src/handlers/http/about.rs @@ -94,6 +94,16 @@ pub async fn about() -> Json { ) }; + let hot_tier_details: String = if CONFIG.hot_tier_dir().is_none() { + "Disabled".to_string() + } else { + let hot_tier_dir: &Option = CONFIG.hot_tier_dir(); + format!( + "Enabled, Path: {}", + hot_tier_dir.as_ref().unwrap().display(), + ) + }; + let ms_clarity_tag = &CONFIG.parseable.ms_clarity_tag; Json(json!({ @@ -110,6 +120,7 @@ pub async fn about() -> Json { "mode": mode, "staging": staging, "cache": cache_details, + "hotTier": hot_tier_details, "grpcPort": grpc_port, "store": { "type": CONFIG.get_storage_mode_string(), diff --git a/server/src/option.rs b/server/src/option.rs index fa90b2cd2..a5428db2f 100644 --- a/server/src/option.rs +++ b/server/src/option.rs @@ -159,6 +159,10 @@ Cloud Native, log analytics platform for modern applications."#, &self.parseable.local_cache_path } + pub fn hot_tier_dir(&self) -> &Option { + &self.parseable.hot_tier_storage_path + } + pub fn is_default_creds(&self) -> bool { self.parseable.username == Cli::DEFAULT_USERNAME && self.parseable.password == Cli::DEFAULT_PASSWORD