Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rcowham opened this issue Jan 14, 2025 · 0 comments
Open

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

rcowham opened this issue Jan 14, 2025 · 0 comments

Comments

@rcowham
Copy link
Contributor

rcowham commented Jan 14, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant