Class CollectdReporter

    • Method Detail

      • forRegistry

        public static CollectdReporter.Builder forRegistry​(io.dropwizard.metrics5.MetricRegistry registry)
        Returns a builder for the specified registry.

        The default settings are:

        • hostName: InetAddress.getLocalHost().getHostName()
        • executor: default executor created by ScheduledReporter
        • shutdownExecutorOnStop: true
        • clock: Clock.defaultClock()
        • rateUnit: TimeUnit.SECONDS
        • durationUnit: TimeUnit.MILLISECONDS
        • filter: MetricFilter.ALL
        • securityLevel: NONE
        • username: ""
        • password: ""
      • start

        public void start​(long period,
                          TimeUnit unit)
        Overrides:
        start in class io.dropwizard.metrics5.ScheduledReporter
      • report

        public void report​(SortedMap<io.dropwizard.metrics5.MetricName,​io.dropwizard.metrics5.Gauge<?>> gauges,
                           SortedMap<io.dropwizard.metrics5.MetricName,​io.dropwizard.metrics5.Counter> counters,
                           SortedMap<io.dropwizard.metrics5.MetricName,​io.dropwizard.metrics5.Histogram> histograms,
                           SortedMap<io.dropwizard.metrics5.MetricName,​io.dropwizard.metrics5.Meter> meters,
                           SortedMap<io.dropwizard.metrics5.MetricName,​io.dropwizard.metrics5.Timer> timers)
        Specified by:
        report in class io.dropwizard.metrics5.ScheduledReporter