From 1b8e0a9ccea9a7f1e3477bb4aed631d50166605f Mon Sep 17 00:00:00 2001 From: Michael Marshall Date: Sat, 19 Aug 2023 10:03:10 -0500 Subject: [PATCH] [improve][proxy] Support disabling metrics endpoint (#21031) (cherry picked from commit d06cda6cd8a58b8a7e0678183f05c08059ddb9b2) (cherry picked from commit c644849b2dd21c824eaaeeb5b5482df7e492f49a) (cherry picked from commit 084347c801185f14e42e7d399327092efbed101f) --- .../org/apache/pulsar/proxy/server/ProxyConfiguration.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/ProxyConfiguration.java b/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/ProxyConfiguration.java index 0e7fb14841a2b..64d3a831f7da7 100644 --- a/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/ProxyConfiguration.java +++ b/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/ProxyConfiguration.java @@ -361,6 +361,12 @@ public class ProxyConfiguration implements PulsarConfiguration { ) private boolean enableProxyStatsEndpoints = true; + @FieldContext( + category = CATEGORY_HTTP, + doc = "Whether to enable the proxy's /metrics, /proxy-stats, and /status.html http endpoints" + ) + private boolean enableProxyStatsEndpoints = true; + @FieldContext( category = CATEGORY_AUTHENTICATION, doc = "Whether the '/metrics' endpoint requires authentication. Defaults to true."