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

KeyTypeDefaultDescription
affinityobject{}Affinity for the pod assignment
fullnameOverridestring""String to fully override fullname template with a string
hostPort.enabledboolfalseEnable hostPort
hostPort.portint9835The hostPort to listen to
image.pullPolicystring"IfNotPresent"Image pull policy
image.repositorystring"docker.io/utkuozdemir/nvidia_gpu_exporter"Image repository
image.tagstring""Image tag (if not specified, defaults to the chart's appVersion)
imagePullSecretslist[]Image pull secrets
ingress.annotationsobject{}Annotations for the Ingress
ingress.classNamestring""Ingress class name
ingress.enabledboolfalseExpose 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].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]The TLS configuration for the Ingress
log.formatstring"logfmt"Log format to be used by the exporter
log.levelstring"info"Log level to be used by the exporter
nameOverridestring""String to partially override fullname template with a string (will prepend the release name)
nodeSelectorobject{}The node selector for the deployment
nvidiaSmiCommandstring"nvidia-smi"The command to run to get nvidia-smi compatible output. Can be custom path and/or args.
podAnnotationsobject{}Annotations for the pods
podSecurityContextobject{}Security context for the pods
portint9835Port for the exporter to listen to
queryFieldNameslist["AUTO"]nvidia-smi fields to be queried by the exporter
resourcesobject{}The resource requests and limits of the container
securityContextobject{"privileged":true}Security context for the container. Privileged is required for the collector to work properly.
service.nodePortstringnilThe node port to use if service type is NodePort or LoadBalancer.
service.portint9835Port for the service to use
service.typestring"ClusterIP"Type of the service
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
serviceMonitorobjectsee values.yamlPrometheus PodMonitor configuration
telemetryPathstring"/metrics"The path to expose the metrics from
tolerationslist[]Tolerations for the pod assignment
volumeMountslistsee values.yamlThe container mount configurations for the volumes
volumeslistsee values.yamlThe volumes to mount from the host

Maintainers

NameEmailUrl
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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartnvidia-gpu-exporter is pinned at v0.3.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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