Skip to content

fix(metrics): populate chart gauges from restored indexes - #1160

Merged
scbizu merged 1 commit into
helm:mainfrom
ViktorBystrov72:fix/statefile-chart-metrics
Nov 25, 2026
Merged

scbizu merged 1 commit into
helm:mainfrom
ViktorBystrov72:fix/statefile-chart-metrics

Conversation

@ViktorBystrov72

Copy link
Copy Markdown
Contributor

Fixes #713

Loading an index statefile after a restart can leave the chart and chart-version gauges absent until a write regenerates the index. Populate both gauges from the restored index entries while preserving the original index response bytes.

Tests

  • go test -p 3 ./... -count=1
  • The statefile regression checks both gauges for a tenant. Local smoke tests covered YAML and JSON statefiles.

Prepared with assistance from OpenAI Codex.

@scbizu

scbizu commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

@ViktorBystrov72 thank you for contributing , can you sign the commit and push again ?

Initialize the chart and chart-version gauges when loading a cached index so they are available after a restart without a chart write.

Signed-off-by: Viktor Bystrov <18964918+ViktorBystrov72@users.noreply.github.com>
Signed-off-by: ViktorBystrov72 <anatema@bk.ru>
@ViktorBystrov72
ViktorBystrov72 force-pushed the fix/statefile-chart-metrics branch from 50f9d16 to 737f48c Compare November 25, 2026 08:03
@ViktorBystrov72

Copy link
Copy Markdown
Contributor Author

I pushed a GitHub-verified signature on the replacement commit. It has the same parent and source tree, with a DCO sign-off for the signed author.

@scbizu
scbizu merged commit 4b2cb2b into helm:main Nov 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Application metrics" not being exported after setting ENABLE_METRICS

2 participants