Skip to content

Conversation

@Bueller87
Copy link
Contributor

@Bueller87 Bueller87 commented Aug 18, 2025

Task:
Create a sample demonstrating the new poller auto-scaling feature in the Go client worker.

What I did:
Created a new sample called "autoscaling-monitoring" under cmd/samples/advanced. The sample is independent of config/development.yaml and can be copied to another project and run independently. It demonstrates how to enable and use the Auto Scaler and add a metrics endpoint for Prometheus. The README includes comprehensive instructions on how to run everything and provides a link to observe the new dashboards for viewing auto-scaling metrics.

Caveats:
The debate continues between using cmd/samples and new_samples. This sample doesn't really fit in either category as it's not a workflow sample—it's all about the worker configuration and adding a Prometheus endpoint. To avoid polluting either of the existing directories, I created a novel sample type: cmd/samples/advanced. Let me know what you all think about this approach.

PS:
To view the dashboards you will need this: cadence-workflow/cadence#7177

@Bueller87 Bueller87 merged commit 9229fa8 into cadence-workflow:master Aug 28, 2025
1 check passed
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.

2 participants