We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4c116c commit 8a65caaCopy full SHA for 8a65caa
1 file changed
libsql-server/src/http/admin/mod.rs
@@ -72,6 +72,7 @@ where
72
C: Connector,
73
{
74
let app_label = std::env::var("SQLD_APP_LABEL").ok();
75
+ let ver = env!("CARGO_PKG_VERSION");
76
77
let prom_handle = if !disable_metrics {
78
let lock = PROM_HANDLE.lock();
@@ -84,6 +85,7 @@ where
84
85
86
if let Some(app_label) = app_label {
87
b.add_global_label("app", app_label)
88
+ .add_global_label("version", ver)
89
.install_recorder()
90
.unwrap()
91
} else {
@@ -95,6 +97,8 @@ where
95
97
None
96
98
};
99
100
+ metrics::increment_counter!("libsql_server_count");
101
+
102
use axum::routing::{get, post};
103
let metrics = Metrics {
104
handle: prom_handle,
0 commit comments