I followed the indication that adding the coda hale metrics library to the classpath will automatically automatically configure the metrics.
This works, I get the entered metricRegistry bean.
However, how do I show these new metrics at the endpoint / metric?
Thank!
, . Codahale , Spring Boot, API- Codahale , . Boot Gauge Counter .
UPDATE: Spring Boot Codahale /metrics 1.2.0 (. MetricRegistryMetricReader).
MetricRegistryMetricReader
- , http://www.ryantenney.com/metrics-spring/, /health.
/health
compile 'com.ryantenney.metrics:metrics-spring:3.0.0-RC2'
"enableMetrics"
@EnableMetrics public class ApplicationConfiguration { ...
@timed:
@timed
@Timed @RequestMapping(method=RequestMethod.GET) public @ResponseBody Foo foo() { ...
MetricRegistry /health.
MetricRegistry
, :
https://github.com/benschw/consul-cluster-puppet/tree/master/demo
: http://txt.fliglio.com/2014/10/spring-boot-actuator/
I am updating the bar chart with spring-boot as follows:
gauge.submit("histogram." + name + ".millis", durationMillis);
Source: https://habr.com/ru/post/1584901/More articles:Python function does not return as expected - pythonHow to resize an image without filling the background with color - phpstd :: array as parameter in virtual function - c ++Can I reload the profile for the running ipython / jupyter server? If so, how? - configurationUsing the @Timed method in a service - javaClosed navigation box shortcuts - javaКак игнорировать белые пробелы при сравнении двух файлов? - javaТри js Shader Material изменяют буфер глубины - javascriptGet a specific item in a group Mongo DB $ group - mongodbEvaluate a multivariate function with varying input dimension - mathAll Articles