You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix demo readme and grafana dashboard for autoscaling demo (#251)
<!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open
issue** for this.
We work best with you when we have accepted the idea first before you
code. -->
<!--- For ALL Contributors 👇 -->
## What was changed
Fix demo readme and grafana dashboard for autoscaling demo
## Why?
So that autoscaling demo grafana works out of the box
## Checklist
<!--- add/delete as needed --->
1. Closes <!-- add issue number here -->
2. How was this tested:
<!--- Please describe how you tested your changes/how we can test them
-->
3. Any docs updates needed?
<!--- update README if applicable
or point out where to update docs.temporal.io -->
Copy file name to clipboardExpand all lines: internal/demo/README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -263,11 +263,12 @@ Stop the load generator (`Ctrl-C`) and watch the HPA scale back down as in-fligh
263
263
`approximate_backlog_count` measures tasks queued in Temporal but not yet started on a worker. Adding it as a second HPA metric means the HPA scales up on *arriving* work even before slots are full — important for bursty traffic.
264
264
265
265
>**Note:** Temporal Cloud emits `temporal_approximate_backlog_count` with a combined
266
-
>`version="namespace/twd-name:build-id"` label that contains characters invalid in
267
-
> Kubernetes label values (`/` and `:`). The recording rule in
268
-
>`prometheus-stack-values.yaml` uses `label_replace` to extract `twd_name` and
269
-
>`build_id` as separate k8s-compatible labels, producing `temporal_backlog_count_by_version`.
270
-
> The HPA then selects on those labels — the same pair used by Phase 1.
266
+
>`worker_version="<worker-deployment-name>_<build-id>"` label that easily exceeds Kubernetes max label
267
+
> length of 63 characters. The recording rule in`prometheus-stack-values.yaml` uses `label_replace`
268
+
> to extract `temporal_worker_deployment_name` and `temporal_worker_build_id` as separate k8s-compatible
269
+
> labels, producing `temporal_backlog_count_by_version`. The HPA then selects on those labels — the same
270
+
> pair used by Phase 1. Temporal Cloud is in the process of rolling out the new separate labels, so this
271
+
> workaround is required until then.
271
272
272
273
**Step 1 — Create the Temporal Cloud credentials secret.**
0 commit comments