From f85b9b486182e2b522bf7f42030566ea990d5900 Mon Sep 17 00:00:00 2001 From: Hilbrand Bouwkamp Date: Fri, 29 May 2026 16:51:30 +0200 Subject: [PATCH 1/2] Added missing documentation og aer.taskmanager.work.* metrics --- doc/telemetry.md | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/doc/telemetry.md b/doc/telemetry.md index 441ae67..82ff4e4 100644 --- a/doc/telemetry.md +++ b/doc/telemetry.md @@ -86,20 +86,25 @@ And `aer.taskmanager.client.queue.usage` has states `used` and `waiting` that pr This shows the number of tasks on the worker queue that are not yet picked up by any worker. -| metric name | type | description | -|-------------------------------------------------------|-----------|-------------------------------------------------------------------------| -| `aer.taskmanager.work.load`1 | gauge | Percentage of workers occupied. | -| `aer.taskmanager.worker.limit`1 | gauge | Weighted total number of workers based on tasks send to workers. | -| `aer.taskmanager.worker.usage`2 | gauge | Weighted usage of workers based on tasks send to workers. | -| `aer.taskmanager.workerpool.worker.limit`1 | gauge | TaskManager internal total number of workers. | -| `aer.taskmanager.workerpool.worker.usage`2 | gauge | TaskManager internal usage of workers. | -| `aer.taskmanager.client.queue.usage`2 | gauge | TaskManager internal metrics on client queue usage. | -| `aer.rabbitmq.worker.limit`1 | gauge | Total number of workers available as reported by RabbitMQ | -| `aer.rabbitmq.worker.usage`2 | gauge | Usage o the workers based on the messages on the RabbitMQ worker queue. | -| `aer.taskmanager.dispatched`1 | histogram | The number of tasks dispatched. | -| `aer.taskmanager.dispatched.wait`1 | histogram | The average wait time of tasks dispatched. | -| `aer.taskmanager.dispatched.queue`3 | histogram | The number of tasks dispatched per client queue. | -| `aer.taskmanager.dispatched.queue.wait`3/sup> | histogram | The average wait time of tasks dispatched per client queue. | +| metric name | type | description | +|-------------------------------------------------------|-----------|----------------------------------------------------------------------------| +| `aer.taskmanager.work.load`1 | gauge | Percentage of workers occupied. | +| `aer.taskmanager.work`1 | gauge | Count the number task processed on a worker. | +| `aer.taskmanager.work.duration`1 | gauge | Average duration a task took to process, including wait time. | +| `aer.taskmanager.work.queue`3 | gauge | Count the number task from a queue processed on a worker. | +| `aer.taskmanager.work.queue.duration`3 | gauge | Average duration a task from a queue took to process, including wait time. | +| `aer.taskmanager.worker.limit`1 | gauge | Weighted total number of workers based on tasks send to workers. | +| `aer.taskmanager.worker.limit`1 | gauge | Weighted total number of workers based on tasks send to workers. | +| `aer.taskmanager.worker.usage`2 | gauge | Weighted usage of workers based on tasks send to workers. | +| `aer.taskmanager.workerpool.worker.limit`1 | gauge | TaskManager internal total number of workers. | +| `aer.taskmanager.workerpool.worker.usage`2 | gauge | TaskManager internal usage of workers. | +| `aer.taskmanager.client.queue.usage`2 | gauge | TaskManager internal metrics on client queue usage. | +| `aer.rabbitmq.worker.limit`1 | gauge | Total number of workers available as reported by RabbitMQ | +| `aer.rabbitmq.worker.usage`2 | gauge | Usage o the workers based on the messages on the RabbitMQ worker queue. | +| `aer.taskmanager.dispatched`1 | histogram | The number of tasks dispatched. | +| `aer.taskmanager.dispatched.wait`1 | histogram | The average wait time of tasks dispatched. | +| `aer.taskmanager.dispatched.queue`3 | histogram | The number of tasks dispatched per client queue. | +| `aer.taskmanager.dispatched.queue.wait`3 | histogram | The average wait time of tasks dispatched per client queue. | Basically there are 3 metric groups that report similar information. First the `aer.taskmanager.worker.*` metrics are a weighted value based on when tasks are send to the workers. From 8208153c77a25152bb97c3199197923a9e53a897 Mon Sep 17 00:00:00 2001 From: Hilbrand Bouwkamp Date: Mon, 1 Jun 2026 13:33:48 +0200 Subject: [PATCH 2/2] Review comment --- doc/telemetry.md | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/telemetry.md b/doc/telemetry.md index 82ff4e4..70a1027 100644 --- a/doc/telemetry.md +++ b/doc/telemetry.md @@ -94,7 +94,6 @@ This shows the number of tasks on the worker queue that are not yet picked up by | `aer.taskmanager.work.queue`3 | gauge | Count the number task from a queue processed on a worker. | | `aer.taskmanager.work.queue.duration`3 | gauge | Average duration a task from a queue took to process, including wait time. | | `aer.taskmanager.worker.limit`1 | gauge | Weighted total number of workers based on tasks send to workers. | -| `aer.taskmanager.worker.limit`1 | gauge | Weighted total number of workers based on tasks send to workers. | | `aer.taskmanager.worker.usage`2 | gauge | Weighted usage of workers based on tasks send to workers. | | `aer.taskmanager.workerpool.worker.limit`1 | gauge | TaskManager internal total number of workers. | | `aer.taskmanager.workerpool.worker.usage`2 | gauge | TaskManager internal usage of workers. |