Package com.netflix.servo.publish

Examples of com.netflix.servo.publish.LocalJmxConnector


        assertEquals(name, "HystrixCommand.GetLogs.simpleMonitor");
    }

    public static Metric getOSMetric(String name) throws Exception {
        MetricPoller poller = new JmxMetricPoller(new LocalJmxConnector(),
                new ObjectName("java.lang:type=OperatingSystem"), MATCH_NONE);

        RegexMetricFilter filter = new RegexMetricFilter(null,
                Pattern.compile(name), false, false);
        List<Metric> metrics = poller.poll(filter);
View Full Code Here

TOP

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

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.