Skip to content

Commit

Permalink
Rename parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mhalbritter committed Jun 14, 2024
1 parent 7d96789 commit e1aef9d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ public PrometheusScrapeEndpoint(PrometheusRegistry prometheusRegistry) {
/**
* 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());
}

Expand Down

0 comments on commit e1aef9d

Please sign in to comment.