Show every job in dstack metrics - #4108
Open
peterschmidt85 wants to merge 1 commit into
Open
Conversation
#4086 narrowed the command to one job, on the grounds that the endpoint is per-job and `dstack logs` reads the same way. That was the wrong call for this command: metrics are most useful when replicas can be compared, and comparing them meant running the command once per replica and holding the numbers in your head. Every job is shown again, keyed by a `replica=`/`job=` column that follows `dstack ps` -- named only where it distinguishes something, so a single-job run is just `job=0` and one replica across four nodes is `job=0..3`. `--replica` and `--job` narrow it to one rather than select the only one shown. All jobs share a single time axis, fixed to the hour the server retains rather than fitted to the data. A row then means the same thing in every invocation, and a replica that started two minutes ago fills two minutes of it with the rest left blank -- which is the fact worth seeing about it. Drops the core count from the CPU number: the value is already normalised to it, and unlike memory there is no total to give it meaning. Drops the blank row between `cpu` and the devices. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverses the single-job part of #4086. Metrics are most useful when replicas can be compared, and that meant running the command once per replica and remembering the numbers.
A task with one job:
A service with three replicas, one of them idle:
dstack ps:replica=/group=appear only where they distinguish something, so a single-job run is justjob=0.--replica/--jobnarrow to one.🤖 Generated with Claude Code