sdk-python icon indicating copy to clipboard operation
sdk-python copied to clipboard

Enhancement/allow custom metric buckets

Open TheCodeWrangler opened this issue 10 months ago • 0 comments

Working to allow for custom histogram binning to be applied to prometheus metrics. Ideally this would be able to be applied to activities as well as workflows. The current implementation appears to not be applied to workflow end-to-end metrics.

What was changed

Added parameter for "histogram_bucket_overrides" to PrometheusConfig as well as the bridge to the sdk-core.

Added a test case for checking that custom binning is applied. Confirmed that the metrics endpoint for custom metrics were updated but not updated for workflow end to end latencies.

Why?

I was facing a limitation on viewing long running applications due to the default maximum activity bin being 60 seconds.

Checklist

  1. Closes 777

  2. How was this tested:

  1. Any docs updates needed?

TheCodeWrangler avatar Mar 03 '25 16:03 TheCodeWrangler