diff options
author | Yngve Aasheim <yngveaasheim@users.noreply.github.com> | 2023-01-20 14:48:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-20 14:48:38 +0100 |
commit | e2b7120a6bd6eb0b5d7558263ce29d7d4599358f (patch) | |
tree | 7a40a5ac67b7f63d5c140db93249cfd7e9fd282a | |
parent | 286b29be89ed6431acca9a74f057af0a412dbd3e (diff) |
Add enums for for deprecated metrics
-rw-r--r-- | container-core/src/main/java/com/yahoo/metrics/ContainerMetrics.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/container-core/src/main/java/com/yahoo/metrics/ContainerMetrics.java b/container-core/src/main/java/com/yahoo/metrics/ContainerMetrics.java index 7fd24a853eb..513cf499362 100644 --- a/container-core/src/main/java/com/yahoo/metrics/ContainerMetrics.java +++ b/container-core/src/main/java/com/yahoo/metrics/ContainerMetrics.java @@ -145,9 +145,13 @@ public enum ContainerMetrics { ERROR_INVALID_QUERY_TRANSFORMATION("error.invalid_query_transformation", Unit.OPERATION, "Requests that failed due to invalid query transformation"), ERROR_RESULTS_WITH_ERRORS("error.results_with_errors", Unit.OPERATION, "The number of queries with error payload"), ERROR_UNSPECIFIED("error.unspecified", Unit.OPERATION, "Requests that failed for an unspecified reason"), - ERROR_UNHANDLED_EXCEPTION("error.unhandled_exception", Unit.OPERATION, "Requests that failed due to an unhandled exception"); - - + ERROR_UNHANDLED_EXCEPTION("error.unhandled_exception", Unit.OPERATION, "Requests that failed due to an unhandled exception"), + + // Deprecated metrics. TODO: Remove on Vespa 9. + SERVER_REJECTED_REQUESTS("serverRejectedRequests", Unit.OPERATION, "Deprecated. Use jdisc.thread_pool.rejected_tasks instead."), + SERVER_THREAD_POOL_SIZE("serverThreadPoolSize", Unit.THREAD, "Deprecated. Use jdisc.thread_pool.size instead."), + SERVER_ACTIVE_THREADS("serverActiveThreads", Unit.THREAD, "Deprecated. Use jdisc.thread_pool.active_threads instead."); + private final String name; private final Unit unit; private final String description; |