Export metrics to spring for download

spring boot shows all possible metrics at the endpoint /metrics . on the other hand, internally it uses exporter metrics. for example, when you add dropwizard metrics (current de facto standard?), it is automatically registered, but not all spring-boot metrics are exported to dropwizard. in order to have more / all metrics, you need to manually register different metric sets. and it should be supported in parallel with what spring-boot does for the endpoint /metrics .

so the question is: how should this be done correctly? should exporters of indicators be used and maintained for each of dozens of microservices, or should the Collection<PublicMetrics> used by the endpoint /metrics and supported by spring be used?

+6
source share
1 answer

Use only dropwizard metrics to manage your code, as it has a more intuitive API and then Spring.

With the spring -dropwizard integration ( http://metrics.ryantenney.com/, all dropwizard metrics are available for endpoints / metrics, so you don’t need to register anything manually.

0
source

Source: https://habr.com/ru/post/1011978/


All Articles