aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorJonathan Davies <jpds@protonmail.com>2023-03-10 11:40:58 +0000
committerJonathan Davies <jpds@protonmail.com>2023-03-10 14:46:44 +0000
commit25f2a46fc3e50c882cd518244bb49d44d01ca442 (patch)
tree7842b8880eb26171e2abeb98ed8111814708e141 /src/rpc
parent9e061d5a70f35db7c62c79089567ef4dc226e413 (diff)
downloadgarage-25f2a46fc3e50c882cd518244bb49d44d01ca442.tar.gz
garage-25f2a46fc3e50c882cd518244bb49d44d01ca442.zip
rpc/system_metrics.rs: Added rustversion label to garage_build_info metric.
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/system_metrics.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rpc/system_metrics.rs b/src/rpc/system_metrics.rs
index 83f5fa97..af81b71f 100644
--- a/src/rpc/system_metrics.rs
+++ b/src/rpc/system_metrics.rs
@@ -31,10 +31,10 @@ impl SystemMetrics {
.u64_value_observer("garage_build_info", move |observer| {
observer.observe(
1,
- &[KeyValue::new(
- "version",
- garage_util::version::garage_version(),
- )],
+ &[
+ KeyValue::new("rustversion", garage_util::version::rust_version()),
+ KeyValue::new("version", garage_util::version::garage_version()),
+ ],
)
})
.with_description("Garage build info")