@Configuration public class MetricsConfig extends Object
To enable Metrics reporting to Graphite, activate the Spring profile "metrics.graphite". The system properties fcrepo.metrics.host and fcrepo.metrics.port can also be set (defaults to "localhost" and 2003, respectively.
To enable Metrics reporting to JMX, activate the Spring profile "metrics.jmx".
To enable both Graphite and JMX reporting, the Spring profile "metrics", can be used instead of specifying both metrics.graphite and metrics.jmx, e.g.:
-Dspring.profiles.active="metrics"
Modifier and Type | Class and Description |
---|---|
static class |
MetricsConfig.GraphiteConfig
Metrics configuration for Graphite reporting.
|
static class |
MetricsConfig.JmxConfig
JMX configuration for metrics reporting.
|
Modifier and Type | Field and Description |
---|---|
static String |
METRIC_PREFIX |
Constructor and Description |
---|
MetricsConfig() |
Modifier and Type | Method and Description |
---|---|
ReporterFactory |
reporterFactory()
Provide the reporter factory to Spring
|
public static final String METRIC_PREFIX
public MetricsConfig()
@Bean public ReporterFactory reporterFactory()
Copyright © 2013–2015 DuraSpace, Inc.. All rights reserved.