forked from armadaproject/armada
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Scheduler Metrics (armadaproject#3804)
* wip Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * lint Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * wip Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * wip Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * wip Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * wip Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * wip Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * wip Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * remove unnecessary classes Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * fix tests Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * fix tests Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * lint Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * fix integration test Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * unit test Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * unit test Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * go mod tidy Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * lint Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * wip Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * wip Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * merge master Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * wip Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * wip Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * wip Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * wip Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * wip Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * wip Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * wip Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * fix compilation Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * fix compilation Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * more tests Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * more tests Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * wip Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * fix merge conflict Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * minor fixes Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * better names Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * fix test Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * add counters Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * wip Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * add back reset Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * add back reset Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * add back reset Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * register metrics Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * lint Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * fix metric names Signed-off-by: Chris Martin <chris@cmartinit.co.uk> * review comments Signed-off-by: Chris Martin <chris@cmartinit.co.uk> --------- Signed-off-by: Chris Martin <chris@cmartinit.co.uk> Co-authored-by: Chris Martin <chris@cmartinit.co.uk>
- Loading branch information
Showing
26 changed files
with
1,248 additions
and
1,137 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package metrics | ||
|
||
const ( | ||
|
||
// common prefix for all metric names | ||
prefix = "armada_scheduler_" | ||
|
||
// Prometheus Labels | ||
poolLabel = "pool" | ||
queueLabel = "queue" | ||
priorityClassLabel = "priority_class" | ||
nodeLabel = "node" | ||
clusterLabel = "cluster" | ||
errorCategoryLabel = "category" | ||
errorSubcategoryLabel = "subcategory" | ||
stateLabel = "state" | ||
priorStateLabel = "priorState" | ||
resourceLabel = "resource" | ||
|
||
// Job state strings | ||
queued = "queued" | ||
running = "running" | ||
pending = "pending" | ||
cancelled = "cancelled" | ||
leased = "leased" | ||
preempted = "preempted" | ||
failed = "failed" | ||
succeeded = "succeeded" | ||
) |
Oops, something went wrong.