@Configuration @Profile(value={"metrics","metrics.graphite"}) public static class MetricsConfig.GraphiteConfig extends Object
Metrics configuration for Graphite reporting.
Graphite reporting can be enabled by activating the "metrics.graphite" Spring profile.
Constructor and Description |
---|
GraphiteConfig() |
Modifier and Type | Method and Description |
---|---|
com.codahale.metrics.graphite.Graphite |
graphiteClient()
Host and port may be configured with system properties
"fcrepo.metrics.host" and "fcrepo.metrics.port", respectively.
|
com.codahale.metrics.graphite.GraphiteReporter |
graphiteReporter() |
public GraphiteConfig()
@Bean public com.codahale.metrics.graphite.Graphite graphiteClient()
Host and port may be configured with system properties "fcrepo.metrics.host" and "fcrepo.metrics.port", respectively.
Host and port default to "localhost" and "2003", respectively.
@Bean public com.codahale.metrics.graphite.GraphiteReporter graphiteReporter()
Copyright © 2013–2015 DuraSpace, Inc.. All rights reserved.