mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
Move observability config to separate config section
This renames: allow_prometheus -> observability.metrics.enable allow_jaeger -> observability.traces.enable tracing_flame -> observability.flame.enable log -> observability.logs.filter log_colors -> observability.logs.colors log_format -> observability.logs.format New config values in these sections will follow.
This commit is contained in:
parent
8a30817930
commit
98d49554ce
3 changed files with 68 additions and 22 deletions
|
|
@ -442,7 +442,7 @@ fn routes(config: &Config) -> Router {
|
|||
.put(c2s::send_state_event_for_empty_key_route),
|
||||
);
|
||||
|
||||
let router = if config.allow_prometheus {
|
||||
let router = if config.observability.metrics.enable {
|
||||
router.route(
|
||||
"/metrics",
|
||||
get(|| async { observability::METRICS.export() }),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue