temporalio / temporalio/temporal-worker-controller
[Feature Request] Support `worker_version` selectors in `WorkerResourceTemplate`
@pranavthakur0-0 is already working on this.
Since Sep 18, 2026.
- Dominant language
- Go
- Stars
- 187
- Forks
- 70
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 31
Description
Is your feature request related to a problem? Please describe.
We run a self-hosted Temporal Server and use WorkerResourceTemplate to create one HPA per worker version, using the Temporal Server's approximate_backlog_count metric through Datadog.
The Temporal Server already exports worker_version on the backlog metric. However, the controller injects only temporal_worker_deployment_name, temporal_worker_build_id, and temporal_namespace. We currently rename the server's separate deployment/build labels in the collector to match those selectors.
Describe the solution you'd like
Ideally, metric selector injection should be configurable, so Temporal Worker Controller's users can choose the label names and how their values are derived from the worker deployment, build ID, and Temporal namespace. Supporting worker_version is our immediate use case, but a general configuration mechanism would also accommodate other collector and metrics-adapter conventions.
For our setup, this should provide an opt-in way to generate a worker_version selector from the worker version associated with each rendered resource.
Additional context
- Controller Helm chart:
0.29.1; self-hosted Temporal Server:1.31.0. - Temporal Server constructs the deployment-version metric tag from the deployment name and build ID.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.