diff --git a/metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/MetricsConfiguration.java b/metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/MetricsConfiguration.java index 3cab361797..a437a1f644 100644 --- a/metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/MetricsConfiguration.java +++ b/metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/MetricsConfiguration.java @@ -121,6 +121,12 @@ public class MetricsConfiguration { return prometheusJob; } + // use getHostsAllowlist instead + @Deprecated + Collection getHostsWhitelist() { + return Collections.unmodifiableCollection(this.hostsAllowlist); + } + Collection getHostsAllowlist() { return Collections.unmodifiableCollection(this.hostsAllowlist); } @@ -241,6 +247,13 @@ public class MetricsConfiguration { return this; } + // use hostsAllowlist instead + @Deprecated + public Builder hostsWhitelist(final List hostsAllowlist) { + this.hostsAllowlist = hostsAllowlist; + return this; + } + public Builder hostsAllowlist(final List hostsAllowlist) { this.hostsAllowlist = hostsAllowlist; return this;