Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions server/src/banner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
"\
Expand Down
11 changes: 11 additions & 0 deletions server/src/handlers/http/about.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@ pub async fn about() -> Json<serde_json::Value> {
)
};

let hot_tier_details: String = if CONFIG.hot_tier_dir().is_none() {
"Disabled".to_string()
} else {
let hot_tier_dir: &Option<PathBuf> = 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!({
Expand All @@ -110,6 +120,7 @@ pub async fn about() -> Json<serde_json::Value> {
"mode": mode,
"staging": staging,
"cache": cache_details,
"hotTier": hot_tier_details,
"grpcPort": grpc_port,
"store": {
"type": CONFIG.get_storage_mode_string(),
Expand Down
4 changes: 4 additions & 0 deletions server/src/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ Cloud Native, log analytics platform for modern applications."#,
&self.parseable.local_cache_path
}

pub fn hot_tier_dir(&self) -> &Option<PathBuf> {
&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
Expand Down