Skip to content

Commit f80710a

Browse files
committed
update: cluster/info to return bucket name
cluster info now also returns the bucket name
1 parent bb24458 commit f80710a

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

server/src/handlers/http/about.rs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,26 @@ use crate::{
2828
};
2929
use std::path::PathBuf;
3030

31+
/// {
32+
/// "version": current_version,
33+
/// "uiVersion": ui_version,
34+
/// "commit": commit,
35+
/// "deploymentId": deployment_id,
36+
/// "updateAvailable": update_available,
37+
/// "latestVersion": latest_release,
38+
/// "llmActive": is_llm_active,
39+
/// "llmProvider": llm_provider,
40+
/// "oidcActive": is_oidc_active,
41+
/// "license": "AGPL-3.0-only",
42+
/// "mode": mode,
43+
/// "staging": staging,
44+
/// "cache": cache_details,
45+
/// "grpcPort": grpc_port,
46+
/// "store": {
47+
/// "type": CONFIG.get_storage_mode_string(),
48+
/// "path": store_endpoint
49+
/// }
50+
/// }
3151
pub async fn about() -> Json<serde_json::Value> {
3252
let meta = StorageMetadata::global();
3353

server/src/handlers/http/modal/query_server.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ impl QueryServer {
248248
&ingester.domain_name,
249249
reachable,
250250
staging_path,
251+
CONFIG.storage().get_endpoint(),
251252
error,
252253
status,
253254
));
@@ -707,6 +708,7 @@ struct ClusterInfo {
707708
domain_name: String,
708709
reachable: bool,
709710
staging_path: String,
711+
bucket_name: String,
710712
error: Option<String>, // error message if the ingester is not reachable
711713
status: Option<String>, // status message if the ingester is reachable
712714
}
@@ -716,13 +718,15 @@ impl ClusterInfo {
716718
domain_name: &str,
717719
reachable: bool,
718720
staging_path: String,
721+
bucket_name: String,
719722
error: Option<String>,
720723
status: Option<String>,
721724
) -> Self {
722725
Self {
723726
domain_name: domain_name.to_string(),
724727
reachable,
725728
staging_path,
729+
bucket_name,
726730
error,
727731
status,
728732
}

0 commit comments

Comments
 (0)