sdk-python
sdk-python copied to clipboard
Enhancement/allow custom metric buckets
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
-
Closes 777
-
How was this tested:
- Any docs updates needed?