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
Create a store/metrics.py - introduce methods to increment the count of all submited, failed, processed, retries and dead letter tasks, and reads Metrics and EnhancedMetrics.
Expose two endpoints -
GET("api/metrics") to get the metric info.
GET("api/metrics/enhanced") - includes extra information(e.g. - queue_size, delayd_queue_size, success_rate)
Create a separate MetricService class in services.py.
Update worker/executor.py and services/task.py to count the metrics variables.
store/metrics.py- introduce methods to increment the count of all submited, failed, processed, retries and dead letter tasks, and readsMetricsandEnhancedMetrics.MetricServiceclass inservices.py.worker/executor.pyandservices/task.pyto count the metrics variables.