temporalio / temporalio/features

[Feature Request] New metric: worker_task_slots_total

Open
#98 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
32
Forks
28
Avg merge
1d 9h
Merged PRs (30d)
7

Description

Is your feature request related to a problem? Please describe.

In order to judge how well tuned the worker configuration is it would be useful to compare worker_task_slots_available to the number of slots the worker is configured to allow. This would also allow for alerting on low task slot availability using percentages which is not tenable at the moment.

Describe the solution you'd like

A metric worker_task_slots_total which emits the number of slots the worker is configured for.

Alternative

An alternative would be to emit a metric worker_task_slots_usage showing the current ratio of configured versus available (from 0 -> 1).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the Temporal features repository by locating where the worker_task_slots_available metric is defined or emitted. Review how the worker's configured slot count is represented, then add worker_task_slots_total so it reports that count; verify that the metric is emitted with the expected value and labels.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.