Refactor admin API to be in api/admin and use common code

This commit is contained in:
Alex Auvolat
2022-05-05 10:29:45 +02:00
parent 5768bf3622
commit 633958c7b1
16 changed files with 228 additions and 220 deletions
+4
View File
@@ -121,6 +121,10 @@ pub struct WebConfig {
pub struct AdminConfig {
/// Address and port to bind for admin API serving
pub api_bind_addr: Option<SocketAddr>,
/// Bearer token to use to scrape metrics
pub metrics_token: Option<String>,
/// Bearer token to use to access Admin API endpoints
pub admin_token: Option<String>,
/// OTLP server to where to export traces
pub trace_sink: Option<String>,
}