Use metrics endpoint from the cfgsync params
This commit is contained in:
parent
2b0bc49457
commit
7550c2970b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue