Package com.netflix.servo.publish

Examples of com.netflix.servo.publish.PollScheduler


        if (initalized)
            return;

        try
        {
            PollScheduler scheduler = PollScheduler.getInstance();
            scheduler.start();
            MetricObserver fileObserver = new FileMetricObserver("stats", new File("."));
            MetricObserver transform = new CounterToRateMetricTransform(fileObserver, 2, TimeUnit.MINUTES);
            PollRunnable task = new PollRunnable(new MonitorRegistryMetricPoller(), BasicMetricFilter.MATCH_ALL, transform);
            scheduler.addPoller(task, 1, TimeUnit.MINUTES);
        }
        catch (Throwable e)
        {
            // dont do anything... just eat.
            logger.error("Epic Plugin was not intialized: ", e);
View Full Code Here

TOP

Related Classes of com.netflix.servo.publish.PollScheduler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.