Search in sources :

Example 1 with ServoMonitor

use of com.netflix.zuul.plugins.ServoMonitor in project zuul by Netflix.

the class StartServer method initPlugins.

private void initPlugins() {
    LOG.info("Registering Servo Monitor");
    MonitorRegistry.getInstance().setPublisher(new ServoMonitor());
    LOG.info("Starting Poller");
    MetricPoller.startPoller();
    LOG.info("Registering Servo Tracer");
    TracerFactory.initialize(new Tracer());
    LOG.info("Registering Servo Counter");
    CounterFactory.initialize(new Counter());
    LOG.info("Starting CPU stats");
    final ThreadCpuStats stats = ThreadCpuStats.getInstance();
    stats.start();
}
Also used : Counter(com.netflix.zuul.plugins.Counter) Tracer(com.netflix.zuul.plugins.Tracer) ThreadCpuStats(com.netflix.servo.util.ThreadCpuStats) ServoMonitor(com.netflix.zuul.plugins.ServoMonitor)

Aggregations

ThreadCpuStats (com.netflix.servo.util.ThreadCpuStats)1 Counter (com.netflix.zuul.plugins.Counter)1 ServoMonitor (com.netflix.zuul.plugins.ServoMonitor)1 Tracer (com.netflix.zuul.plugins.Tracer)1