Skip to content

Commit

Permalink
update: cluster/info to return bucket name
Browse files Browse the repository at this point in the history
cluster info now also returns the bucket name
  • Loading branch information
Eshanatnight committed Mar 26, 2024
1 parent f0dfd87 commit f9c2f64
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
20 changes: 20 additions & 0 deletions server/src/handlers/http/about.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,26 @@ use crate::{
};
use std::path::PathBuf;

/// {
/// "version": current_version,
/// "uiVersion": ui_version,
/// "commit": commit,
/// "deploymentId": deployment_id,
/// "updateAvailable": update_available,
/// "latestVersion": latest_release,
/// "llmActive": is_llm_active,
/// "llmProvider": llm_provider,
/// "oidcActive": is_oidc_active,
/// "license": "AGPL-3.0-only",
/// "mode": mode,
/// "staging": staging,
/// "cache": cache_details,
/// "grpcPort": grpc_port,
/// "store": {
/// "type": CONFIG.get_storage_mode_string(),
/// "path": store_endpoint
/// }
/// }
pub async fn about() -> Json<serde_json::Value> {
let meta = StorageMetadata::global();

Expand Down
4 changes: 4 additions & 0 deletions server/src/handlers/http/modal/query_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ impl QueryServer {
&ingester.domain_name,
reachable,
staging_path,
CONFIG.storage().get_endpoint(),
error,
status,
));
Expand Down Expand Up @@ -692,6 +693,7 @@ struct ClusterInfo {
domain_name: String,
reachable: bool,
staging_path: String,
storage_path: String,
error: Option<String>, // error message if the ingester is not reachable
status: Option<String>, // status message if the ingester is reachable
}
Expand All @@ -701,13 +703,15 @@ impl ClusterInfo {
domain_name: &str,
reachable: bool,
staging_path: String,
storage_path: String,
error: Option<String>,
status: Option<String>,
) -> Self {
Self {
domain_name: domain_name.to_string(),
reachable,
staging_path,
storage_path,
error,
status,
}
Expand Down

0 comments on commit f9c2f64

Please sign in to comment.