From 899820a4dcd42229a9bea702d0197dc0fe9e4c66 Mon Sep 17 00:00:00 2001 From: mrhapile Date: Tue, 17 Feb 2026 15:10:04 +0530 Subject: [PATCH 1/2] changed and renamed the metrics Signed-off-by: mrhapile --- charts/gateway-addons-helm/values.yaml | 34 ++++++++++++++++---------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/charts/gateway-addons-helm/values.yaml b/charts/gateway-addons-helm/values.yaml index e2cbb3b88d..35b3528db0 100644 --- a/charts/gateway-addons-helm/values.yaml +++ b/charts/gateway-addons-helm/values.yaml @@ -57,7 +57,7 @@ prometheus: prometheus-pushgateway: enabled: false kube-state-metrics: - enabled: false + enabled: true customResourceState: enabled: true # Add (Cluster)Role permissions to list/watch the customResources defined in the config to rbac.extraRules @@ -85,7 +85,7 @@ prometheus: info: labelsFromPath: gatewayclass_name: [ spec, gatewayClassName ] - - name: "labels" + - name: "labels_info" help: "Kubernetes labels converted to Prometheus labels." each: type: Info @@ -105,6 +105,7 @@ prometheus: type: Gauge gauge: path: [ metadata, deletionTimestamp ] + nilIsZero: true - name: "listener_info" help: "Gateway listener information" each: @@ -162,7 +163,7 @@ prometheus: info: labelsFromPath: controller_name: [ spec, controllerName ] - - name: "labels" + - name: "labels_info" help: "Kubernetes labels converted to Prometheus labels." each: type: Info @@ -182,6 +183,7 @@ prometheus: type: Gauge gauge: path: [ metadata, deletionTimestamp ] + nilIsZero: true - name: "status" help: "status condition" each: @@ -212,7 +214,7 @@ prometheus: - metadata - namespace metrics: - - name: "labels" + - name: "labels_info" help: "Kubernetes labels converted to Prometheus labels." each: type: Info @@ -232,6 +234,7 @@ prometheus: type: Gauge gauge: path: [ metadata, deletionTimestamp ] + nilIsZero: true - name: "hostname_info" help: "Hostname information" each: @@ -280,7 +283,7 @@ prometheus: - metadata - namespace metrics: - - name: "labels" + - name: "labels_info" help: "Kubernetes labels converted to Prometheus labels." each: type: Info @@ -300,6 +303,7 @@ prometheus: type: Gauge gauge: path: [ metadata, deletionTimestamp ] + nilIsZero: true - name: "hostname_info" help: "Hostname information" each: @@ -338,7 +342,7 @@ prometheus: - groupVersionKind: group: gateway.networking.k8s.io kind: "TCPRoute" - version: "v1alpha2" + version: "v1" metricNamePrefix: gatewayapi_tcproute labelsFromPath: name: @@ -348,7 +352,7 @@ prometheus: - metadata - namespace metrics: - - name: "labels" + - name: "labels_info" help: "Kubernetes labels converted to Prometheus labels." each: type: Info @@ -368,6 +372,7 @@ prometheus: type: Gauge gauge: path: [ metadata, deletionTimestamp ] + nilIsZero: true - name: "parent_info" help: "Parent references that the tcproute wants to be attached to" each: @@ -398,7 +403,7 @@ prometheus: - groupVersionKind: group: gateway.networking.k8s.io kind: "TLSRoute" - version: "v1alpha2" + version: "v1" metricNamePrefix: gatewayapi_tlsroute labelsFromPath: name: @@ -408,7 +413,7 @@ prometheus: - metadata - namespace metrics: - - name: "labels" + - name: "labels_info" help: "Kubernetes labels converted to Prometheus labels." each: type: Info @@ -428,6 +433,7 @@ prometheus: type: Gauge gauge: path: [ metadata, deletionTimestamp ] + nilIsZero: true - name: "hostname_info" help: "Hostname information" each: @@ -466,7 +472,7 @@ prometheus: - groupVersionKind: group: gateway.networking.k8s.io kind: "UDPRoute" - version: "v1alpha2" + version: "v1" metricNamePrefix: gatewayapi_udproute labelsFromPath: name: @@ -476,7 +482,7 @@ prometheus: - metadata - namespace metrics: - - name: "labels" + - name: "labels_info" help: "Kubernetes labels converted to Prometheus labels." each: type: Info @@ -496,6 +502,7 @@ prometheus: type: Gauge gauge: path: [ metadata, deletionTimestamp ] + nilIsZero: true - name: "parent_info" help: "Parent references that the udproute wants to be attached to" each: @@ -526,7 +533,7 @@ prometheus: - groupVersionKind: group: gateway.networking.k8s.io kind: "BackendTLSPolicy" - version: "v1alpha3" + version: "v1" metricNamePrefix: gatewayapi_backendtlspolicy labelsFromPath: name: @@ -536,7 +543,7 @@ prometheus: - metadata - namespace metrics: - - name: "labels" + - name: "labels_info" help: "Kubernetes labels converted to Prometheus labels." each: type: Info @@ -556,6 +563,7 @@ prometheus: type: Gauge gauge: path: [ metadata, deletionTimestamp ] + nilIsZero: true - name: "target_info" help: "Target references that the backendtlspolicy wants to be attached to" each: From 3b0332e36b5d64fe8d7cc43d2f23b46e3a47b27a Mon Sep 17 00:00:00 2001 From: mrhapile Date: Tue, 17 Feb 2026 16:10:00 +0530 Subject: [PATCH 2/2] chore: regenerate helm docs Signed-off-by: mrhapile --- charts/gateway-addons-helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/gateway-addons-helm/values.yaml b/charts/gateway-addons-helm/values.yaml index 35b3528db0..3cf0d57c0d 100644 --- a/charts/gateway-addons-helm/values.yaml +++ b/charts/gateway-addons-helm/values.yaml @@ -57,7 +57,7 @@ prometheus: prometheus-pushgateway: enabled: false kube-state-metrics: - enabled: true + enabled: false customResourceState: enabled: true # Add (Cluster)Role permissions to list/watch the customResources defined in the config to rbac.extraRules