-
Story
-
Resolution: Done
-
Undefined
-
None
-
None
-
Product / Portfolio Work
-
False
-
-
False
-
None
-
None
-
NI&D Sprint 279, NI&D Sprint 280
The usage of Gateway API on an Openshift cluster can be measured by collecting how many Gateway Classes are created, which ones are Openshift managed or not (given controllerName "openshift.io/gateway-controller/v1"), and how many Gateways are created with each kind of Gateway Class.
kube-state-metrics can be used to fetch these counts, and a Prometheus rule can be used to aggregate these metrics and remove any specific information.
This way:
- Implement a kube-state-metrics configuration to collect the usage of GatewayClass and Gateway CRDs - This was already done by Dan Winship on https://github.com/openshift/cluster-monitoring-operator/compare/main...danwinship:cluster-monitoring-operator:gateway-metrics
- Implement a Prometheus Rule to aggregate the metrics - Done via https://github.com/openshift/cluster-monitoring-operator/compare/main...rikatz:cluster-monitoring-operator:gateway-api-telemetry
This story will be used then to register the current actions.