Skip to content

Restore cache metrics#56096

Merged
rosstimothy merged 1 commit intomasterfrom
tross/cache_metrics
Jun 27, 2025
Merged

Restore cache metrics#56096
rosstimothy merged 1 commit intomasterfrom
tross/cache_metrics

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

@rosstimothy rosstimothy commented Jun 25, 2025

During the cache storage refactoring, all of the cache metrics that were recorded via the backend.Reporter that wrapped the cache backend were lost. This attempts to restore the metrics as close to the original meaning as possible, though due to the changes some labels are different and batch metrics don't apply. The biggest change is in the top requests metrics which has historically been based on the backend.Key, but since that the cache no longer deals with backends, the metric is now labeled by the resource kind. All existing dashboards and tctl top should still work as expected.

@rosstimothy rosstimothy added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v18 labels Jun 25, 2025
@rosstimothy rosstimothy force-pushed the tross/cache_metrics branch from 62953a8 to 0769490 Compare June 26, 2025 13:05
@rosstimothy rosstimothy marked this pull request as ready for review June 26, 2025 13:08
@github-actions github-actions bot requested a review from kopiczko June 26, 2025 13:08
Comment thread lib/backend/report.go Outdated
Comment thread lib/cache/store.go
@rosstimothy rosstimothy force-pushed the tross/cache_metrics branch from c2fafd7 to 259a4a6 Compare June 27, 2025 14:09
@rosstimothy rosstimothy force-pushed the tross/cache_metrics branch from 259a4a6 to 35d60f0 Compare June 27, 2025 17:33
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from kopiczko June 27, 2025 17:40
During the cache storage refactoring, all of the cache metrics
that were recorded via the backend.Reporter that wrapped the
cache backend were lost. This attempts to restore the metrics
as close to the original meaning as possible, though due to the
changes some labels are different and batch metrics don't apply.
The biggest change is in the top requests metrics which has
historically been based on the backend.Key, but since that
the cache no longer deals with backends, the metric is now labeled
by the resource kind. All existing dashboards and tctl top should
still work as expected.
@rosstimothy rosstimothy force-pushed the tross/cache_metrics branch from 35d60f0 to 527308e Compare June 27, 2025 17:44
@rosstimothy rosstimothy enabled auto-merge June 27, 2025 17:45
@rosstimothy rosstimothy added this pull request to the merge queue Jun 27, 2025
Merged via the queue into master with commit 5540e35 Jun 27, 2025
40 of 41 checks passed
@rosstimothy rosstimothy deleted the tross/cache_metrics branch June 27, 2025 18:37
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@rosstimothy See the table below for backport results.

Branch Result
branch/v17 Failed
branch/v18 Failed

rosstimothy added a commit that referenced this pull request Jun 27, 2025
During the cache storage refactoring, all of the cache metrics
that were recorded via the backend.Reporter that wrapped the
cache backend were lost. This attempts to restore the metrics
as close to the original meaning as possible, though due to the
changes some labels are different and batch metrics don't apply.
The biggest change is in the top requests metrics which has
historically been based on the backend.Key, but since that
the cache no longer deals with backends, the metric is now labeled
by the resource kind. All existing dashboards and tctl top should
still work as expected.
rosstimothy added a commit that referenced this pull request Jun 27, 2025
During the cache storage refactoring, all of the cache metrics
that were recorded via the backend.Reporter that wrapped the
cache backend were lost. This attempts to restore the metrics
as close to the original meaning as possible, though due to the
changes some labels are different and batch metrics don't apply.
The biggest change is in the top requests metrics which has
historically been based on the backend.Key, but since that
the cache no longer deals with backends, the metric is now labeled
by the resource kind. All existing dashboards and tctl top should
still work as expected.
rosstimothy added a commit that referenced this pull request Jun 27, 2025
During the cache storage refactoring, all of the cache metrics
that were recorded via the backend.Reporter that wrapped the
cache backend were lost. This attempts to restore the metrics
as close to the original meaning as possible, though due to the
changes some labels are different and batch metrics don't apply.
The biggest change is in the top requests metrics which has
historically been based on the backend.Key, but since that
the cache no longer deals with backends, the metric is now labeled
by the resource kind. All existing dashboards and tctl top should
still work as expected.
rosstimothy added a commit that referenced this pull request Jun 27, 2025
During the cache storage refactoring, all of the cache metrics
that were recorded via the backend.Reporter that wrapped the
cache backend were lost. This attempts to restore the metrics
as close to the original meaning as possible, though due to the
changes some labels are different and batch metrics don't apply.
The biggest change is in the top requests metrics which has
historically been based on the backend.Key, but since that
the cache no longer deals with backends, the metric is now labeled
by the resource kind. All existing dashboards and tctl top should
still work as expected.
rosstimothy added a commit that referenced this pull request Jun 27, 2025
During the cache storage refactoring, all of the cache metrics
that were recorded via the backend.Reporter that wrapped the
cache backend were lost. This attempts to restore the metrics
as close to the original meaning as possible, though due to the
changes some labels are different and batch metrics don't apply.
The biggest change is in the top requests metrics which has
historically been based on the backend.Key, but since that
the cache no longer deals with backends, the metric is now labeled
by the resource kind. All existing dashboards and tctl top should
still work as expected.
github-merge-queue bot pushed a commit that referenced this pull request Jun 30, 2025
During the cache storage refactoring, all of the cache metrics
that were recorded via the backend.Reporter that wrapped the
cache backend were lost. This attempts to restore the metrics
as close to the original meaning as possible, though due to the
changes some labels are different and batch metrics don't apply.
The biggest change is in the top requests metrics which has
historically been based on the backend.Key, but since that
the cache no longer deals with backends, the metric is now labeled
by the resource kind. All existing dashboards and tctl top should
still work as expected.
github-merge-queue bot pushed a commit that referenced this pull request Jun 30, 2025
During the cache storage refactoring, all of the cache metrics
that were recorded via the backend.Reporter that wrapped the
cache backend were lost. This attempts to restore the metrics
as close to the original meaning as possible, though due to the
changes some labels are different and batch metrics don't apply.
The biggest change is in the top requests metrics which has
historically been based on the backend.Key, but since that
the cache no longer deals with backends, the metric is now labeled
by the resource kind. All existing dashboards and tctl top should
still work as expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/branch/v17 backport/branch/v18 no-changelog Indicates that a PR does not require a changelog entry size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants