add configuration option to enable/disable monitoring bucket in web metrics

This commit is contained in:
Alex Auvolat
2025-02-14 14:54:06 +01:00
parent 8b9cc5ca3f
commit 2f55889835
4 changed files with 35 additions and 30 deletions
+3
View File
@@ -183,6 +183,9 @@ pub struct WebConfig {
pub bind_addr: UnixOrTCPSocketAddress,
/// Suffix to remove from domain name to find bucket
pub root_domain: String,
/// Whether to add the requested domain to exported Prometheus metrics
#[serde(default)]
pub add_host_to_metrics: bool,
}
/// Configuration for the admin and monitoring HTTP API