Plugin to collect and report the system metrics.
In order for the GPU information to be collected the container needs access to
the hosts /sys/kernel/debug
directory. Therefore, a volume mount is necessary.
Docker:
docker run --privileged --rm -it -v /sys/kernel/debug:/sys/kernel/debug --entrypoint /bin/bash joe:latest
Kubernetes Pod:
apiVersion: v1
kind: Pod
metadata:
name: my-pod
labels:
app: my-app
spec:
containers:
- name: app
image: localhost:5000/joe:latest
volumeMounts:
- mountPath: /sys/kernel/debug
name: sys-kernel-debug
securityContext:
privileged: true
volumes:
- name: sys-kernel-debug
hostPath:
path: /sys/kernel/debug
type: Directory
The tegrastats
tool is used to collect system metrics on NVidia Tegra hardware.
The following resources were used as reference to parse that data: