August 2019
Intermediate to advanced
256 pages
6h 43m
English
It is also possible to retrieve data for only a single scope by appending the scope name to the path. In the following example, we only retrieve metrics for the base scope:
$ curl http://localhost:8080/metrics/base
This now only shows metrics for the base scope:
# TYPE base:classloader_total_loaded_class_count counterbase:classloader_total_loaded_class_count 13973.0# TYPE base:cpu_system_load_average gaugebase:cpu_system_load_average 1.92236328125
In this section, we have seen how to retrieve metrics from a MicroProfile Metrics-enabled server. Metrics in base and vendor scopes are predefined by the server. Metrics in the application scope can be defined by the user, which we are going to explore in the next section. ...
Read now
Unlock full access