From 38fb433b223296ef7570752877d8178ebd486b41 Mon Sep 17 00:00:00 2001 From: arita <53350098+neutralalice@users.noreply.github.com> Date: Sun, 20 Sep 2026 11:32:31 +0100 Subject: [PATCH 1/2] Chart: allow specifying DRM_EXPORTER_ADDRESS --- charts/drm-exporter/Chart.yaml | 4 ++-- charts/drm-exporter/templates/daemonset.tpl | 2 +- charts/drm-exporter/values.schema.json | 6 ++++++ charts/drm-exporter/values.yaml | 2 ++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/charts/drm-exporter/Chart.yaml b/charts/drm-exporter/Chart.yaml index 10c42c1..40114f7 100644 --- a/charts/drm-exporter/Chart.yaml +++ b/charts/drm-exporter/Chart.yaml @@ -8,8 +8,8 @@ type: application kubeVersion: ">=1.34.0-0" # release-please stamps both on release (the release workflow also re-stamps them # from the tag at package time); keeping the repo copy current stops it going stale. -version: 0.3.3 # x-release-please-version -appVersion: "0.3.3" # x-release-please-version +version: 0.3.4 # x-release-please-version +appVersion: "0.3.4" # x-release-please-version home: https://github.com/home-operations/drm-exporter sources: - https://github.com/home-operations/drm-exporter diff --git a/charts/drm-exporter/templates/daemonset.tpl b/charts/drm-exporter/templates/daemonset.tpl index a6156df..b44bc94 100644 --- a/charts/drm-exporter/templates/daemonset.tpl +++ b/charts/drm-exporter/templates/daemonset.tpl @@ -56,7 +56,7 @@ spec: {{- end }} env: - name: DRM_EXPORTER_ADDRESS - value: "0.0.0.0" + value: {{ .Values.config.address | quote }} - name: DRM_EXPORTER_PORT value: {{ .Values.config.port | quote }} - name: DRM_EXPORTER_INTERVAL_SECONDS diff --git a/charts/drm-exporter/values.schema.json b/charts/drm-exporter/values.schema.json index 87d620c..536dfe9 100644 --- a/charts/drm-exporter/values.schema.json +++ b/charts/drm-exporter/values.schema.json @@ -10,6 +10,12 @@ "config": { "description": "The exporter's runtime configuration. Each key maps to a DRM_EXPORTER_* (or\nRUST_LOG) environment variable the binary reads; see the README for details.", "properties": { + "address": { + "default": "0.0.0.0", + "description": "Metrics HTTP listen address (DRM_EXPORTER_ADDRESS); ipv6 also available as a choice.", + "title": "address", + "type": "string" + }, "devices": { "description": "Restrict export to specific PCI slots, e.g. `[\"0000:03:00.0\"]` (DRM_EXPORTER_DEVICES); empty exports every GPU discovered.", "items": { diff --git a/charts/drm-exporter/values.yaml b/charts/drm-exporter/values.yaml index ad0744d..eff1027 100644 --- a/charts/drm-exporter/values.yaml +++ b/charts/drm-exporter/values.yaml @@ -30,6 +30,8 @@ fullnameOverride: "" # The exporter's runtime configuration. Each key maps to a DRM_EXPORTER_* (or # RUST_LOG) environment variable the binary reads; see the README for details. config: + # -- Metrics HTTP listen address (DRM_EXPORTER_ADDRESS); ipv6 also available as a choice. + address: 0.0.0.0 # -- Metrics HTTP listen port (DRM_EXPORTER_PORT); also the container and Service port. port: 8081 # -- Seconds between GPU stat refreshes (DRM_EXPORTER_INTERVAL_SECONDS). Intel engine utilization is sampled across this window, so keep it at or below the Prometheus scrape interval. From 5d4d36694a7ac1277118b4bb9abacfff27941d04 Mon Sep 17 00:00:00 2001 From: arita <53350098+neutralalice@users.noreply.github.com> Date: Sun, 20 Sep 2026 11:58:03 +0100 Subject: [PATCH 2/2] Chart: downgrade chart and app version as this is controlled by ci --- charts/drm-exporter/Chart.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/drm-exporter/Chart.yaml b/charts/drm-exporter/Chart.yaml index 40114f7..10c42c1 100644 --- a/charts/drm-exporter/Chart.yaml +++ b/charts/drm-exporter/Chart.yaml @@ -8,8 +8,8 @@ type: application kubeVersion: ">=1.34.0-0" # release-please stamps both on release (the release workflow also re-stamps them # from the tag at package time); keeping the repo copy current stops it going stale. -version: 0.3.4 # x-release-please-version -appVersion: "0.3.4" # x-release-please-version +version: 0.3.3 # x-release-please-version +appVersion: "0.3.3" # x-release-please-version home: https://github.com/home-operations/drm-exporter sources: - https://github.com/home-operations/drm-exporter