nvidia-gpu-exporter
by apecloud
Helm chartv0.3.1App 0.3.0MITVerified publisher
Nvidia GPU exporter for prometheus using nvidia-smi binary to gather metrics.
About this chart
nvidia-gpu-exporter
Nvidia GPU exporter for prometheus using nvidia-smi binary to gather metrics.
Homepage: https://github.com/utkuozdemir/nvidia_gpu_exporter
TL;DR
$ helm repo add utkuozdemir https://utkuozdemir.org/helm-charts
$ helm install my-release utkuozdemir/nvidia-gpu-exporter
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Affinity for the pod assignment |
| fullnameOverride | string | "" | String to fully override fullname template with a string |
| hostPort.enabled | bool | false | Enable hostPort |
| hostPort.port | int | 9835 | The hostPort to listen to |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| image.repository | string | "docker.io/utkuozdemir/nvidia_gpu_exporter" | Image repository |
| image.tag | string | "" | Image tag (if not specified, defaults to the chart's appVersion) |
| imagePullSecrets | list | [] | Image pull secrets |
| ingress.annotations | object | {} | Annotations for the Ingress |
| ingress.className | string | "" | Ingress class name |
| ingress.enabled | bool | false | Expose the app using an Ingress -- Note: Scraping the ingress -- will yield incomplete metrics since each DaemonSet pod is -- exposing the metrics of the GPU on the node it is on |
| ingress.hosts[0].host | string | "chart-example.local" | |
| ingress.hosts[0].paths[0].path | string | "/" | |
| ingress.hosts[0].paths[0].pathType | string | "ImplementationSpecific" | |
| ingress.tls | list | [] | The TLS configuration for the Ingress |
| log.format | string | "logfmt" | Log format to be used by the exporter |
| log.level | string | "info" | Log level to be used by the exporter |
| nameOverride | string | "" | String to partially override fullname template with a string (will prepend the release name) |
| nodeSelector | object | {} | The node selector for the deployment |
| nvidiaSmiCommand | string | "nvidia-smi" | The command to run to get nvidia-smi compatible output. Can be custom path and/or args. |
| podAnnotations | object | {} | Annotations for the pods |
| podSecurityContext | object | {} | Security context for the pods |
| port | int | 9835 | Port for the exporter to listen to |
| queryFieldNames | list | ["AUTO"] | nvidia-smi fields to be queried by the exporter |
| resources | object | {} | The resource requests and limits of the container |
| securityContext | object | {"privileged":true} | Security context for the container. Privileged is required for the collector to work properly. |
| service.nodePort | string | nil | The node port to use if service type is NodePort or LoadBalancer. |
| service.port | int | 9835 | Port for the service to use |
| service.type | string | "ClusterIP" | Type of the service |
| serviceAccount.annotations | object | {} | Annotations to add to the service account |
| serviceAccount.create | bool | true | Specifies whether a service account should be created |
| serviceAccount.name | string | "" | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| serviceMonitor | object | see values.yaml | Prometheus PodMonitor configuration |
| telemetryPath | string | "/metrics" | The path to expose the metrics from |
| tolerations | list | [] | Tolerations for the pod assignment |
| volumeMounts | list | see values.yaml | The container mount configurations for the volumes |
| volumes | list | see values.yaml | The volumes to mount from the host |
Maintainers
| Name | Url | |
|---|---|---|
| Utku Özdemir | [email protected] | https://utkuozdemir.org |
Source Code
Deploy nvidia-gpu-exporter with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nvidia-gpu-exporter on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartnvidia-gpu-exporter is pinned at v0.3.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply