aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin/cluster.rs
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2023-03-13 15:46:48 +0000
committerAlex <alex@adnab.me>2023-03-13 15:46:48 +0000
commit7fcc153e7cfbae61626ca288634a0f4fb4c4b709 (patch)
treeaa39b41d63358277d61f2cb92ef9565a97c1c901 /src/api/admin/cluster.rs
parentdc6be3983300ee3ee10f601cfc04a06563d86f48 (diff)
parentf37ec584b6009b16d1c7f06918889954b22f5afb (diff)
downloadgarage-7fcc153e7cfbae61626ca288634a0f4fb4c4b709.tar.gz
garage-7fcc153e7cfbae61626ca288634a0f4fb4c4b709.zip
Merge pull request 'rpc/system_metrics.rs: Added rustversion label to garage_build_info metric.' (#524) from jpds/garage:rustversion-label into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/524
Diffstat (limited to 'src/api/admin/cluster.rs')
-rw-r--r--src/api/admin/cluster.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/admin/cluster.rs b/src/api/admin/cluster.rs
index 182a4f6f..98bf2b5a 100644
--- a/src/api/admin/cluster.rs
+++ b/src/api/admin/cluster.rs
@@ -20,6 +20,7 @@ pub async fn handle_get_cluster_status(garage: &Arc<Garage>) -> Result<Response<
node: hex::encode(garage.system.id),
garage_version: garage_util::version::garage_version(),
garage_features: garage_util::version::garage_features(),
+ rust_version: garage_util::version::rust_version(),
db_engine: garage.db.engine(),
known_nodes: garage
.system
@@ -106,6 +107,7 @@ struct GetClusterStatusResponse {
node: String,
garage_version: &'static str,
garage_features: Option<&'static [&'static str]>,
+ rust_version: &'static str,
db_engine: String,
known_nodes: HashMap<String, KnownNodeResp>,
layout: GetClusterLayoutResponse,