Skip to content

[Feature Request] Latency metrics of task execution in cluster manager #11818

@dhwanilpatel

Description

@dhwanilpatel

Is your feature request related to a problem? Please describe

Today we have visibility on the total number of pending tasks and time in queue. We should have visibility on latency of the tasks during execution phase as well.

This latency metric will help determine if any task is taking long time in execution. We can even add more granular metrics of execution as well like time taken during cluster state computation/publication/committing/etc.

Describe the solution you'd like

One possible solution could be to expose in _cluster/pending_task API, where along with time_in_queue we can expose time_in_execution.

We can explore other solutions as well if there is any other better way to expose it.

Related component

Cluster Manager

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Cluster ManagerenhancementEnhancement or improvement to existing feature or request

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions