Use metrics endpoint from the cfgsync params

This commit is contained in:
Gusto 2024-11-13 06:25:56 +02:00
parent 2b0bc49457
commit 7550c2970b
1 changed files with 1 additions and 3 deletions

View File

@ -204,9 +204,7 @@ fn tracing_config_for_grafana(params: TracingParams, identifier: String) -> Gene
}),
filter: FilterLayer::None,
metrics: MetricsLayer::Otlp(OtlpMetricsConfig {
endpoint: "http://127.0.0.1:9090/api/v1/otlp/v1/metrics"
.try_into()
.unwrap(),
endpoint: params.metrics_endpoint.try_into().unwrap(),
host_identifier: identifier,
}),
level: Level::INFO,