Skip to content

Commit cc13c27

Browse files
committed
[NE-2203] Remove namespace and reason from GatewayAPI metrics
1 parent 408cd69 commit cc13c27

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

assets/kube-state-metrics/custom-resource-state-configmap.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -507,14 +507,6 @@ data:
507507
"gateway_class":
508508
- "metadata"
509509
- "name"
510-
"namespace":
511-
- "metadata"
512-
- "namespace"
513-
"reason":
514-
- "status"
515-
- "conditions"
516-
- "[type=Accepted]"
517-
- "reason"
518510
"type": "Info"
519511
"help": "Information about GatewayClasses"
520512
"name": "gateway_class"
@@ -540,11 +532,6 @@ data:
540532
- "conditions"
541533
- "[type=Programmed]"
542534
- "status"
543-
"reason":
544-
- "status"
545-
- "conditions"
546-
- "[type=Programmed]"
547-
- "reason"
548535
"type": "Info"
549536
"help": "Information about Gateways"
550537
"name": "gateway"

jsonnet/utils/kube-state-metrics-custom-resource-state.libsonnet

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,12 @@ local gatewayClassMetrics = [
9393
type: 'Info',
9494
info: {
9595
labelsFromPath: {
96-
namespace: ['metadata', 'namespace'],
9796
gateway_class: ['metadata', 'name'],
9897
controller_name: ['spec', 'controllerName'],
9998
accepted: ['status', 'conditions', '[type=Accepted]', 'status'],
100-
reason: ['status', 'conditions', '[type=Accepted]', 'reason']
101-
}
102-
}
103-
}
99+
},
100+
},
101+
},
104102
},
105103
];
106104

@@ -116,10 +114,9 @@ local gatewayMetrics = [
116114
gateway: ['metadata', 'name'],
117115
gateway_class_name: ['spec', 'gatewayClassName'],
118116
programmed: ['status', 'conditions', '[type=Programmed]', 'status'],
119-
reason: ['status', 'conditions', '[type=Programmed]', 'reason']
120-
}
121-
}
122-
}
117+
},
118+
},
119+
},
123120
},
124121
];
125122

0 commit comments

Comments
 (0)