diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2020-10-08 16:13:12 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2020-10-08 16:13:12 +0200 |
commit | 443f2ce98ce0e87df4c5fa99ced334718bc19b21 (patch) | |
tree | 9de882e1bf910065ce1d8bf0d1a98771d94c4afb /config-model | |
parent | cd19e1aea7b0475211b5d9f67f533719ccb693fc (diff) |
Add metrics for Jetty's threadpool
Diffstat (limited to 'config-model')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/admin/monitoring/VespaMetricSet.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/admin/monitoring/VespaMetricSet.java b/config-model/src/main/java/com/yahoo/vespa/model/admin/monitoring/VespaMetricSet.java index 56b70bec24e..1ab614a917a 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/admin/monitoring/VespaMetricSet.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/admin/monitoring/VespaMetricSet.java @@ -199,6 +199,18 @@ public class VespaMetricSet { metrics.add(new Metric("jdisc.http.ssl.handshake.failure.unknown.rate")); metrics.add(new Metric("jdisc.http.handler.unhandled_exceptions.rate")); + + { + List<String> suffices = List.of("sum", "count", "last", "min", "max"); + addMetric(metrics, "jdisc.http.jetty.threadpool.thread.max", suffices); + addMetric(metrics, "jdisc.http.jetty.threadpool.thread.min", suffices); + addMetric(metrics, "jdisc.http.jetty.threadpool.thread.reserved", suffices); + addMetric(metrics, "jdisc.http.jetty.threadpool.thread.busy", suffices); + addMetric(metrics, "jdisc.http.jetty.threadpool.thread.idle", suffices); + addMetric(metrics, "jdisc.http.jetty.threadpool.thread.total", suffices); + addMetric(metrics, "jdisc.http.jetty.threadpool.queue.size", suffices); + } + return metrics; } |