Class CollectdReporter

    • Method Detail

      • forRegistry

        public static CollectdReporter.Builder forRegistry​(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)
        Description copied from class: ScheduledReporter
        Starts the reporter polling at the given period.
        Overrides:
        start in class ScheduledReporter
        Parameters:
        period - the amount of time between polls
        unit - the unit for period