Class PrometheusResponseWriter

    • Constructor Detail

      • PrometheusResponseWriter

        public PrometheusResponseWriter()
    • Method Detail

      • toPrometheus

        public static void toPrometheus​(com.codahale.metrics.MetricRegistry registry,
                                        String registryName,
                                        List<com.codahale.metrics.MetricFilter> shouldMatchFilters,
                                        com.codahale.metrics.MetricFilter mustMatchFilter,
                                        Predicate<CharSequence> propertyFilter,
                                        boolean skipHistograms,
                                        boolean skipAggregateValues,
                                        boolean compact,
                                        Consumer<SolrPrometheusFormatter> consumer)
        Provides a representation of the given Dropwizard metric registry as SolrPrometheusCoreFormatter-s. Only those metrics are converted which match at least one of the given MetricFilter instances.
        Parameters:
        registry - the MetricRegistry to be converted
        shouldMatchFilters - a list of MetricFilter instances. A metric must match any one of the filters from this list to be included in the output
        mustMatchFilter - a MetricFilter. A metric must match this filter to be included in the output.
        propertyFilter - limit what properties of a metric are returned
        skipHistograms - discard any Histogram-s and histogram parts of Timer-s.
        skipAggregateValues - discard internal values of AggregateMetric-s.
        compact - use compact representation for counters and gauges.
        consumer - consumer that accepts produced SolrPrometheusCoreFormatter-s