temporalio / temporalio/temporal-worker-controller

[Feature Request] Support `worker_version` selectors in `WorkerResourceTemplate`

Open
#588 7 comments 0 reactions 1 assignee View on GitHub

@pranavthakur0-0 is already working on this.

Since Sep 18, 2026.

good first issue
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

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.