Skip to content

Feature: Add metrics to show count of processed, submitted, failed tasks into dashboard #8

Description

@vikash1807
  • 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 -
    1. GET("api/metrics") to get the metric info.
    2. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions