-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
views,*: Improved NVidia support + fixes
Improve the NVidia parser-file, add stub list- and info-views for NVIDIADriver, fix a bug in the logparser key_value rule (hopefully without introducing new issues), and add a bit of highliting for some error states. Signed-off-by: David Weinehall <[email protected]>
- Loading branch information
Showing
10 changed files
with
210 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,68 @@ | ||
- name: "nvidia" | ||
show_in_selector: false | ||
matchkeys: | ||
- image_name: "/nvidia/k8s-device-plugin" | ||
- image_name: "/nvidia/cloud-native/k8s-driver-manager" | ||
container_type: "init_container" | ||
parser_rules: | ||
- name: "glog" | ||
- name: "custom_line" | ||
options: | ||
block_start: | ||
- matchtype: "exact" | ||
matchkey: "Running with config:" | ||
matchline: "any" | ||
format_block_start: true | ||
block_end: | ||
- matchtype: "exact" | ||
matchkey: "}" | ||
matchline: "any" | ||
format_block_end: true | ||
loglevel: "info" | ||
- name: "nvidia" | ||
show_in_selector: false | ||
matchkeys: | ||
- image_name: "/nvidia/k8s/container-toolkit" | ||
- image_name: "/nvidia/k8s/dcgm-exporter" | ||
- image_name: "/nvidia/cloud-native/gpu-operator-validator" | ||
container_type: "init_container" | ||
parser_rules: | ||
- name: "key_value" | ||
- name: "override_severity" | ||
overrides: | ||
- matchtype: "startswith" | ||
matchkey: "version: " | ||
loglevel: "notice" | ||
- matchtype: "startswith" | ||
matchkey: "NVIDIA-SMI has failed" | ||
loglevel: "error" | ||
- matchtype: "startswith" | ||
matchkey: "CRITICAL:" | ||
loglevel: "critical" | ||
- name: "custom_line" | ||
options: | ||
block_start: | ||
- matchtype: "exact" | ||
matchkey: "Using config:" | ||
matchline: "any" | ||
format_block_start: true | ||
block_end: | ||
- matchtype: "startswith" | ||
matchkey: "time" | ||
matchline: "any" | ||
format_block_end: false | ||
process_block_end: false | ||
loglevel: "info" | ||
- name: "custom_line" | ||
options: | ||
block_start: | ||
- matchtype: "startswith" | ||
matchkey: "+---------------" | ||
matchline: "any" | ||
format_block_start: true | ||
block_end: | ||
- matchtype: "startswith" | ||
matchkey: "+---------------" | ||
matchline: "any" | ||
format_block_end: true | ||
loglevel: "info" |
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,43 @@ | ||
kind: "NVIDIADriver" | ||
api_family: "nvidia.com" | ||
default_command: "nvidiadrivers" | ||
command: | ||
- "nvidiadrvs" | ||
- "nvidiadrv" | ||
- "nvdrvs" | ||
- "nvdrv" | ||
listview: | ||
name: "NVIDIA Drivers" | ||
group: "Accelerators" | ||
field_indexes: | ||
Normal: | ||
fields: ["name", "driver_type", "state", "age"] | ||
fields: | ||
driver_type: | ||
header: "Driver Type:" | ||
path: "spec#driverType" | ||
default: "gpu" | ||
type: "str" | ||
state: | ||
header: "State:" | ||
path: "status#state" | ||
type: "str" | ||
formatter: "value_mapper" | ||
formatting: | ||
mapping: | ||
mappings: | ||
ignored: | ||
field_colors: | ||
- context: "main" | ||
type: "status_ok" | ||
notReady: | ||
field_colors: | ||
- context: "main" | ||
type: "status_not_ok" | ||
ready: | ||
field_colors: | ||
- context: "main" | ||
type: "status_ok" | ||
infoview: | ||
name: "NVIDIA Driver Info" | ||
infopad: |
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