diff --git a/pom.xml b/pom.xml index dc9a89c..8e824b1 100644 --- a/pom.xml +++ b/pom.xml @@ -56,7 +56,6 @@ 11 UTF-8 UTF-8 - true diff --git a/src/main/java/com/wire/lithium/server/monitoring/StatusCheckFilter.java b/src/main/java/com/wire/lithium/server/monitoring/StatusCheckFilter.java index 60813f5..f9be29c 100644 --- a/src/main/java/com/wire/lithium/server/monitoring/StatusCheckFilter.java +++ b/src/main/java/com/wire/lithium/server/monitoring/StatusCheckFilter.java @@ -11,7 +11,7 @@ public class StatusCheckFilter implements FilterFactory { @Override public Filter build() { - return new Filter() { + return new Filter<>() { @Override public FilterReply decide(IAccessEvent event) { if (event.getRequestURI().contains("/status")) { @@ -20,6 +20,9 @@ public FilterReply decide(IAccessEvent event) { if (event.getRequestURI().contains("/swagger")) { return FilterReply.DENY; } + if (event.getRequestURI().contains("/metrics")) { + return FilterReply.DENY; + } return FilterReply.NEUTRAL; } };