+
Skip to content

Create a metric for total time of active tasks from monitor table #70

@rcowham

Description

@rcowham

We want to parse monitor show output and extract the total time for active tasks, and create a summary metric for this.
It will allow us to detect long running jobs that may be "stuck" in some way.
Note that we need to potentially exclude service accounts, or tasks such as ldapsync or resource monitor
We should also count IDLE processes.
Potential metrics:

  • max time for any active command
  • total time fo all active commands
  • count of idle processes and Init() processes?
  • count of service commands?

Sample output:

p4 monitor show -al 2268 B svc_master 132:38:12 ldapsync -g -i 1800 2269 B svc_master 132:38:12 admin resource-monitor 2308 I svc_p4d_fs_brk 00:00:00 IDLE none 235102 I p4sdp 07:42:00 IDLE none 500017 I p4dtguser 00:00:09 IDLE none 918870 I swarm 00:02:41 IDLE none 921879 I swarm 00:02:45 IDLE none

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载