Package com.netflix.servo.publish

Examples of com.netflix.servo.publish.FileMetricObserver


        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)
View Full Code Here


        return new AsyncMetricObserver(name, observer, queueSize, expireTime);
    }

    private static MetricObserver createFileObserver() {
        final File dir = Config.getFileObserverDirectory();
        return rateTransform(new FileMetricObserver("servo-example", dir));
    }
View Full Code Here

        }

        LOG.debug("created metrics dir " + metricsDir.getAbsolutePath());

        MetricObserver transform = new CounterToRateMetricTransform(
                new FileMetricObserver("ZuulMetrics", metricsDir),
                heartbeatInterval, TimeUnit.SECONDS);

        PollRunnable task = new PollRunnable(
                new MonitorRegistryMetricPoller(),
                BasicMetricFilter.MATCH_ALL,
View Full Code Here

TOP

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

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.