Skip to content

Add Kueue workload monitoring - #329

Merged
OguzPastirmaci merged 3 commits into
oracle-quickstart:mainfrom
yanncaniouoracle:gpuexp-730-kueue-monitoring
Nov 10, 2026
Merged

OguzPastirmaci merged 3 commits into
oracle-quickstart:mainfrom
yanncaniouoracle:gpuexp-730-kueue-monitoring

Conversation

@yanncaniouoracle

Copy link
Copy Markdown
Contributor

Add Kueue workload monitoring to the existing Prometheus and Grafana stack. Build the dashboard only when Kueue is enabled, with:

  • queue health,
  • admission metrics,
  • workload-to-host mappings,
  • and links to GPU and host dashboards.

Add Kueue workload monitoring to the existing Prometheus and Grafana stack. Build the dashboard only when Kueue is enabled, with:
- queue health,
- admission metrics,
- workload-to-host mappings,
- and links to GPU and host dashboards.

Signed-off-by: Yann Caniou <yann.caniou@oracle.com>
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 28, 2026
@OguzPastirmaci

Copy link
Copy Markdown
Member

/ok-to-run-apply-tf public-fss-monitoring-tf worker_gpu_enabled=false install_kueue=true

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

❌ CI - Apply (Terraform) results

Topology public-fss-monitoring-tf
Result ❌ failure
Overrides {"worker_gpu_enabled":"false","install_kueue":"true"}

View full run log

@OguzPastirmaci

Copy link
Copy Markdown
Member

/ok-to-run-apply-tf public-fss-monitoring-tf worker_gpu_enabled=false install_kueue=true

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

❌ CI - Apply (Terraform) results

Topology public-fss-monitoring-tf
Result ❌ failure
Overrides {"worker_gpu_enabled":"false","install_kueue":"true"}

View full run log

…nflicts

Signed-off-by: Yann Caniou <yann.caniou@oracle.com>
@OguzPastirmaci

Copy link
Copy Markdown
Member

@yanncaniouoracle I tested this PR on live OKE clusters (Grafana 13.2.3 and 13.3.0, Kueue 0.20.0 and 0.20.5). Most of it works, but can you help fixing the below issues:

1. The "selected hosts" links lose the host filter

kueue.jsonnet:84-85 use ${hostname:queryparam}. When Host is All, Grafana 13.x sends var-hostname=$__all, and the job link always sets Host to All. In my test, a job on one node opened GPU Metrics with both GPU nodes and Host Metrics with all 5 nodes. ${hostname:customqueryparam:var-hostname} fixes it, and I tested that change.

2. One duplicated Workload owner blanks the host map for every workload

The group_left joins in oke:kueue_workload_pod:info (values.yaml.tftpl:451, :467) fail with found duplicate series for the match group when two Workloads share an owner. This happens, for example, when a Job is re-created with the same name while its old Workload is terminating. All host and resource panels then go empty for every workload, and no alert reports the rule failure. I reproduced it live. Make the owner side unique before each join, for example with topk by(namespace, owner_name, owner_kind) (1, ...), or join on the owner UID.

Preserve the selected host list when opening GPU and Host Metrics from the Kueue dashboard.
Exclude ambiguous Workload owners before resource joins so duplicate owners cannot break mappings for unrelated workloads. Restore mapping automatically when the duplicate disappears.
Add regression tests for host links, duplicate-owner isolation, and recovery.
@OguzPastirmaci
OguzPastirmaci merged commit bdae68f into oracle-quickstart:main Nov 10, 2026
1 check passed
@yanncaniouoracle
yanncaniouoracle deleted the gpuexp-730-kueue-monitoring branch November 12, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants