@Bean public MetricReaderPublicMetrics dropwizardPublicMetrics( MetricRegistry metricRegistry) { MetricRegistryMetricReader reader = new MetricRegistryMetricReader( metricRegistry); return new MetricReaderPublicMetrics(reader); }
@Bean public MetricReaderPublicMetrics metricReaderPublicMetrics() { return new MetricReaderPublicMetrics( new CompositeMetricReader(this.metricReaders == null ? new MetricReader[0] : this.metricReaders .toArray(new MetricReader[this.metricReaders.size()]))); }
@Bean @ConditionalOnMissingBean(name = "springIntegrationPublicMetrics") public MetricReaderPublicMetrics springIntegrationPublicMetrics( IntegrationMBeanExporter exporter) { return new MetricReaderPublicMetrics( new SpringIntegrationMetricReader(exporter)); }
@Bean @ConditionalOnMissingBean public MetricReaderPublicMetrics springIntegrationPublicMetrics( IntegrationMBeanExporter exporter) { return new MetricReaderPublicMetrics( new SpringIntegrationMetricReader(exporter)); }
@Bean public PublicMetrics threadPoolMetrics() { return new PublicMetricsAggregator( new ThreadPoolMetrics(ctx), new MetricReaderPublicMetrics(metricRepository()) ); }
@Bean public PublicMetrics metricsAggregate() { return new MetricReaderPublicMetrics(aggregatesMetricReader()); }
@Test public void metricReaderPublicMetrics() throws Exception { load(); assertThat(this.context.getBeansOfType(MetricReaderPublicMetrics.class)) .hasSize(1); }
@Bean public MetricReaderPublicMetrics metricReaderPublicMetrics() { return new MetricReaderPublicMetrics(new CompositeMetricReader( this.metricReaders.toArray(new MetricReader[0]))); }
@Test public void metricReaderPublicMetrics() throws Exception { load(); assertEquals(1, this.context.getBeansOfType(MetricReaderPublicMetrics.class).size()); }
@Bean public MetricReaderPublicMetrics spectatorPublicMetrics(Registry metricRegistry) { SpectatorMetricReader reader = new SpectatorMetricReader(metricRegistry); return new MetricReaderPublicMetrics(reader); }