@Configuration
@EnableConfigurationProperties(value={MetricsProperties.class,GraphiteClientProperties.class})
public class GraphiteClientConfiguration
extends java.lang.Object
| Constructor and Description |
|---|
GraphiteClientConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
GraphiteClient |
graphiteClient(org.springframework.web.client.RestTemplate graphiteRestTemplate) |
MetricsPaths |
metricsPaths() |
org.springframework.web.client.RestTemplate |
restTemplate(GraphiteClientProperties properties) |
@Bean public MetricsPaths metricsPaths()
@Bean public GraphiteClient graphiteClient(@Qualifier(value="graphiteRestTemplate") org.springframework.web.client.RestTemplate graphiteRestTemplate)
@Bean(value="graphiteRestTemplate") public org.springframework.web.client.RestTemplate restTemplate(GraphiteClientProperties properties)