admin api: add metrics_require_token config option and update doc

This commit is contained in:
Alex Auvolat
2025-03-11 14:15:13 +01:00
parent 004eb94e14
commit ff6ec62d54
3 changed files with 97 additions and 79 deletions
+3
View File
@@ -198,6 +198,9 @@ pub struct AdminConfig {
pub metrics_token: Option<String>,
/// File to read metrics token from
pub metrics_token_file: Option<PathBuf>,
/// Whether to require an access token for accessing the metrics endpoint
#[serde(default)]
pub metrics_require_token: bool,
/// Bearer token to use to access Admin API endpoints
pub admin_token: Option<String>,