Class Filter

java.lang.Object
io.prometheus.client.servlet.common.filter.Filter

public class Filter extends Object
Filter implements the common functionality provided by the two MetricsFilter implementations:
  • javax version: io.prometheus.client.filter.MetricsFilter provided by simpleclient_servlet
  • jakarta version: io.prometheus.client.servlet.jakarta.filter.MetricsFilter provided by simpleclient_servlet_jakarta
Author:
Andrew Stuart <andrew.stuart2@gmail.com>
  • Constructor Details

    • Filter

      public Filter()
    • Filter

      public Filter(String metricName, String help, Integer pathComponents, double[] buckets, boolean stripContextPath)
      If you want to configure the filter programmatically instead of via web.xml, you can pass all configuration parameters to this constructor.
  • Method Details