Examples of RegexMetricFilter


Examples of com.netflix.servo.publish.RegexMetricFilter

    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);
        assertEquals(metrics.size(), 1);
        return metrics.get(0);
    }
View Full Code Here

Examples of org.stagemonitor.core.metrics.RegexMetricFilter

  }

  private static void start(MeasurementSession measurementSession) {
    final CorePlugin corePlugin = getConfiguration(CorePlugin.class);
    initializePlugins(corePlugin);
    RegexMetricFilter regexFilter = new RegexMetricFilter(corePlugin.getExcludedMetricsPatterns());
    getMetricRegistry().removeMatching(regexFilter);

    MetricFilter allFilters = new OrMetricFilter(regexFilter, new MetricsWithCountFilter());

    reportToGraphite(corePlugin.getGraphiteReportingInterval(), measurementSession, allFilters, corePlugin);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.