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.