Add more runtime metrics like information about heap, class loading and threads to the metrics infrastructure
This commit is contained in:
@@ -578,16 +578,27 @@ decrement). Metrics for all HTTP requests are automatically recorded, so if you
|
||||
"counter.status.401.root": 4,
|
||||
"gauge.response.root": 2,
|
||||
"gauge.response.metrics": 3,
|
||||
"mem": 466944,
|
||||
"mem.free": 410117,
|
||||
"processors": 8
|
||||
"classes": 5808,
|
||||
"classes.loaded": 5808,
|
||||
"classes.unloaded": 0,
|
||||
"heap": 3728384,
|
||||
"heap.committed": 986624,
|
||||
"heap.init": 262144,
|
||||
"heap.used": 52765,
|
||||
"mem": 986624,
|
||||
"mem.free": 933858,
|
||||
"processors": 8,
|
||||
"threads": 15,
|
||||
"threads.deamon": 11,
|
||||
"threads.peak": 15,
|
||||
"uptime": 494836
|
||||
}
|
||||
----
|
||||
|
||||
Here we can see basic `memory` and `processor` information along with some HTTP metrics.
|
||||
In this instance the `root` (``/'') and `/metrics` URLs have returned `HTTP 200` responses
|
||||
`20` and `3` times respectively. It also appears that the `root` URL returned `HTTP 401`
|
||||
(unauthorized) `4` times.
|
||||
Here we can see basic `memory`, `heap`, `class loading`, `processor` and `thread pool`
|
||||
information along with some HTTP metrics. In this instance the `root` (``/'') and `/metrics`
|
||||
URLs have returned `HTTP 200` responses `20` and `3` times respectively. It also appears
|
||||
that the `root` URL returned `HTTP 401` (unauthorized) `4` times.
|
||||
|
||||
The `gauge` shows the last response time for a request. So the last request to `root` took
|
||||
`2ms` to respond and the last to `/metrics` took `3ms`.
|
||||
|
||||
Reference in New Issue
Block a user