mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Rename parameter
See gh-40904
This commit is contained in:
parent
7d96789869
commit
e1aef9db6f
@ -67,13 +67,13 @@ public class PrometheusScrapeEndpoint {
|
||||
/**
|
||||
* Creates a new {@link PrometheusScrapeEndpoint}.
|
||||
* @param prometheusRegistry the Prometheus registry to use
|
||||
* @param expositionFormatsProperties the properties used to configure Prometheus'
|
||||
* @param exporterProperties the properties used to configure Prometheus'
|
||||
* {@link ExpositionFormats}
|
||||
*/
|
||||
public PrometheusScrapeEndpoint(PrometheusRegistry prometheusRegistry, Properties expositionFormatsProperties) {
|
||||
public PrometheusScrapeEndpoint(PrometheusRegistry prometheusRegistry, Properties exporterProperties) {
|
||||
this.prometheusRegistry = prometheusRegistry;
|
||||
PrometheusProperties prometheusProperties = (expositionFormatsProperties != null)
|
||||
? PrometheusPropertiesLoader.load(expositionFormatsProperties) : PrometheusPropertiesLoader.load();
|
||||
PrometheusProperties prometheusProperties = (exporterProperties != null)
|
||||
? PrometheusPropertiesLoader.load(exporterProperties) : PrometheusPropertiesLoader.load();
|
||||
this.expositionFormats = ExpositionFormats.init(prometheusProperties.getExporterProperties());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user