Skip to content

monitoring: update CustomResourceStateMetrics to v1 and fix metric naming conventions#8286

Open
mrhapile wants to merge 2 commits intoenvoyproxy:mainfrom
mrhapile:cutom-reource-map
Open

monitoring: update CustomResourceStateMetrics to v1 and fix metric naming conventions#8286
mrhapile wants to merge 2 commits intoenvoyproxy:mainfrom
mrhapile:cutom-reource-map

Conversation

@mrhapile
Copy link

What type of PR is this?

fix(monitoring): update CustomResourceStateMetrics to v1 and align metric naming


What this PR does / why we need it:

This PR updates the CustomResourceStateMetrics configuration in the gateway-addons chart to align with the current Gateway API v1 resources and kube-state-metrics naming conventions.

Specifically, this change:

  • Updates all groupVersionKind.version fields from deprecated v1alpha* versions to v1 for:

    • Gateway
    • GatewayClass
    • HTTPRoute
    • GRPCRoute
    • TCPRoute
    • TLSRoute
    • UDPRoute
    • BackendTLSPolicy
  • Adds nilIsZero: true to all deletionTimestamp gauge metrics to prevent nil resolution warnings such as:
    "got nil while resolving path"

  • Renames Info metrics from labels to labels_info to comply with the kube-state-metrics _info suffix requirement and eliminate warnings like:
    "Info metric does not have _info suffix"

These updates remove deprecated API warnings (e.g. BackendTLSPolicy v1alpha3 deprecation warnings), prevent noisy log errors for deleted resources, and ensure compatibility with the current Gateway API and kube-state-metrics behavior.

This change only affects monitoring configuration. No API changes or behavioral changes to Gateway functionality are introduced.


Which issue(s) this PR fixes:

Fixes #8284


Release Notes: Yes

Screenshot 2026-02-17 at 3 07 09 PM

Signed-off-by: mrhapile <allinonegaming3456@gmail.com>
@mrhapile mrhapile requested a review from a team as a code owner February 17, 2026 09:43
@netlify
Copy link

netlify bot commented Feb 17, 2026

Deploy Preview for cerulean-figolla-1f9435 canceled.

Name Link
🔨 Latest commit 3b0332e
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/6994458ab4805a0008173d98

Signed-off-by: mrhapile <allinonegaming3456@gmail.com>
@codecov
Copy link

codecov bot commented Feb 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.59%. Comparing base (e56785c) to head (3b0332e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8286      +/-   ##
==========================================
+ Coverage   73.57%   73.59%   +0.01%     
==========================================
  Files         242      242              
  Lines       37000    37000              
==========================================
+ Hits        27224    27231       +7     
+ Misses       7854     7850       -4     
+ Partials     1922     1919       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CustomResourceStateMetrics in gateway-addons chart seem out of date

2 participants