intel-gpu-exporter
by xvilo
Python based metrics exporter for Prometheus.
About this chart
Intel GPU Exporter Helm Chart
This Helm chart deploys the Intel GPU Exporter onto a Kubernetes cluster.
It exposes GPU metrics to Prometheus using Node Feature Discovery (NFD) and the Intel GPU Device Plugin.
๐ Prerequisites
Before installing this chart, ensure the following components are installed and running in your cluster:
๐ก These components label nodes with Intel GPU capabilities and expose GPU devices to containers.
๐ Installation
First, add the Helm repository:
helm repo add xvilo https://xvilo.github.io/helm-charts
helm repo update
Then install the chart:
helm install intel-gpu-exporter xvilo/intel-gpu-exporter -n observability
To customize configuration, create a values.yaml and pass it to the install command:
helm install intel-gpu-exporter xvilo/intel-gpu-exporter -f values.yaml -n observability
๐ Metrics
Once deployed, the Intel GPU Exporter exposes GPU metrics at:
http://<pod-ip>:9100/metrics
You can configure Prometheus to scrape these endpoints automatically if itโs set up to discover pods with the appropriate annotations.
๐งฉ Example Prometheus Scrape Configuration
If your Prometheus doesnโt use Kubernetes service discovery, you can manually add a job:
scrape_configs:
- job_name: "intel-gpu-exporter"
kubernetes_sd_configs:
- role: pod
namespaces:
names:
- observability
relabel_configs:
# Only scrape pods with label app=intel-gpu-exporter
- source_labels: [__meta_kubernetes_pod_label_app]
action: keep
regex: intel-gpu-exporter
# Use pod IP and port 9100
- source_labels: [__meta_kubernetes_pod_ip]
target_label: __address__
regex: (.+)
replacement: $1:9100
# Optional: add node name as label
- source_labels: [__meta_kubernetes_pod_node_name]
target_label: kubernetes_node
Deploy intel-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 intel-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 chartintel-gpu-exporter is pinned at v0.1.0 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