@Configuration @ConditionalOnClass(value=org.springframework.cloud.stream.binder.Binder.class) @EnableBinding(value=Emitter.class) @EnableConfigurationProperties(value=ApplicationMetricsProperties.class) @ConditionalOnProperty(value="spring.cloud.stream.bindings.applicationMetrics.destination") public class BinderMetricsAutoConfiguration extends Object
Exporter
that publishes application metrics
over the Emitter.applicationMetrics()
channel.Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_METRICS_EXPORTER_TRIGGER_NAME |
static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
BinderMetricsAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
static org.springframework.beans.factory.config.BeanPostProcessor |
metricExportersBeanPostProcessor(org.springframework.boot.actuate.endpoint.MetricsEndpoint endpoint,
Emitter emitter,
ApplicationMetricsProperties properties)
Postprocessor for installing the
ApplicationMetricsExporter as an exporter
under the name application . |
MetricJsonSerializer |
metricJsonSerializer() |
public static final String APPLICATION_METRICS_EXPORTER_TRIGGER_NAME
public static org.apache.commons.logging.Log log
@Bean public static org.springframework.beans.factory.config.BeanPostProcessor metricExportersBeanPostProcessor(@Lazy org.springframework.boot.actuate.endpoint.MetricsEndpoint endpoint, Emitter emitter, ApplicationMetricsProperties properties)
ApplicationMetricsExporter
as an exporter
under the name application
.endpoint
- the metrics endpoint (lazy reference to prevent early
initialization)emitter
- the emitter bound interfaceproperties
- application metrics properties@Bean public MetricJsonSerializer metricJsonSerializer()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.