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

expand gpus information resources #2

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions go/inventory/v1/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
)

type ResourcesMetric struct {
CPU uint64 `json:"cpu"`
GPU uint64 `json:"gpu"`
Memory uint64 `json:"memory"`
StorageEphemeral uint64 `json:"storage_ephemeral"`
CPU uint64 `json:"cpu"`
GPU uint64 `json:"gpu"`
GPU_infos GPUInfoS `json:"gpu_infos"`

Check failure on line 12 in go/inventory/v1/metrics.go

View workflow job for this annotation

GitHub Actions / proto

var-naming: don't use underscores in Go names; struct field GPU_infos should be GPUInfos (revive)

Check failure on line 12 in go/inventory/v1/metrics.go

View workflow job for this annotation

GitHub Actions / proto

var-naming: don't use underscores in Go names; struct field GPU_infos should be GPUInfos (revive)
Memory uint64 `json:"memory"`
StorageEphemeral uint64 `json:"storage_ephemeral"`
}

type NodeMetrics struct {
Expand Down
Loading