Skip to content

Refactored metric collecting of limit/usage, also includes nr of free workers.#113

Merged
Hilbrand merged 3 commits intoaerius:mainfrom
Hilbrand:add-free-workers-metric
Apr 3, 2026
Merged

Refactored metric collecting of limit/usage, also includes nr of free workers.#113
Hilbrand merged 3 commits intoaerius:mainfrom
Hilbrand:add-free-workers-metric

Conversation

@Hilbrand
Copy link
Copy Markdown
Member

@Hilbrand Hilbrand commented Feb 26, 2026

Refactored initial commit to have a better more consistent implementation. This is in the second commit e598d7a

@Hilbrand Hilbrand requested review from BertScholten and SerhatG March 4, 2026 11:19
@SerhatG
Copy link
Copy Markdown
Member

SerhatG commented Mar 4, 2026

Is this so that we don't have to use the RabbitMQ metrics for this?

Copy link
Copy Markdown
Member

@BertScholten BertScholten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can see it having benefit next to rabbitmq metrics (there can be a difference between the two, which is also useful information).

Would it be an idea to also add .work.total and/or .work.used for completeness? Think you can figure those out based on free and load, but might as well be explicit about those.

@Hilbrand Hilbrand marked this pull request as draft March 20, 2026 14:46
@Hilbrand Hilbrand changed the title Add a metric to show the average number of free workers available. [WIP] Add a metric to show the average number of free workers available. Mar 20, 2026
@Hilbrand Hilbrand force-pushed the add-free-workers-metric branch from d1a39d3 to f6051eb Compare March 20, 2026 16:40
@Hilbrand Hilbrand force-pushed the add-free-workers-metric branch from f6051eb to aaadb95 Compare March 30, 2026 15:04
…emetry standards

Added new usage metrics for weighted metrics, workerpool and RabbitMQ derived usage values.
Used limit/usage with attributes naming as suggested by best practices of OpenTelemetry.
@Hilbrand Hilbrand force-pushed the add-free-workers-metric branch from aaadb95 to e598d7a Compare March 31, 2026 06:40
@Hilbrand Hilbrand changed the title [WIP] Add a metric to show the average number of free workers available. Refactored metric collecting of limit/usage, also includes nr of free workers. Mar 31, 2026
@Hilbrand
Copy link
Copy Markdown
Member Author

@SerhatG @BertScholten I've rewritten this pr to have a more consistent approach for reporting among other things free workers. For the naming conventions I followed the OpenTelemetry suggested best practices: https://opentelemetry.io/docs/specs/semconv/general/naming/#instrument-naming

@Hilbrand Hilbrand requested a review from BertScholten March 31, 2026 06:46
@Hilbrand Hilbrand marked this pull request as ready for review March 31, 2026 07:09
@Hilbrand Hilbrand requested a review from BertScholten April 2, 2026 11:20
Copy link
Copy Markdown
Member

@BertScholten BertScholten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Hilbrand Hilbrand merged commit f856871 into aerius:main Apr 3, 2026
1 check passed
@Hilbrand Hilbrand deleted the add-free-workers-metric branch April 3, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants