Skip to content

upstream: Add proxy cache hit/miss metrics (goharbor/harbor#23578) - #547

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
upstream/cherry-pick-23578-f7c9eda10
Open

upstream: Add proxy cache hit/miss metrics (goharbor/harbor#23578)#547
github-actions[bot] wants to merge 1 commit into
mainfrom
upstream/cherry-pick-23578-f7c9eda10

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Cherry-picks upstream Harbor commit f7c9eda10 from goharbor/harbor#23578.

Upstream Context

Cherry-Pick Status

Upstream Description

Comprehensive Summary of your change

Added http_registry_proxy_requests_total and http_registry_proxy_upstream_requests_total metrics to monitor proxy cache hit/miss ratio.

Issue being fixed

Fixes goharbor/harbor#22799

Please indicate you've done the following:

  • Well Written Title and Summary of the PR
  • Label the PR as needed. "release-note/ignore-for-release, release-note/new-feature, release-note/update, release-note/enhancement, release-note/community, release-note/breaking-change, release-note/docs, release-note/infra, release-note/deprecation"
  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Made sure tests are passing and test coverage is added if needed.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed in website repository.

Review Notes

  • Generated by the upstream cherry-pick workflow.
  • One upstream commit maps to one Harbor Next PR.
  • If this PR is closed without merge, the workflow will not recreate it.

Upstream-Commit: f7c9eda10ddb8a8289b5bc758bd8f31fd5594e93
Upstream-PR: goharbor/harbor#23578
Cherry-Pick-Status: clean

Add http_registry_proxy_requests_total and
http_registry_proxy_upstream_requests_total counters to measure proxy
cache effectiveness, counted by project type with the repository label
dropped to bound metric cardinality.

Fixes #22799

Signed-off-by: Jason Lee <jasoneugenelee@gmail.com>

(cherry picked from commit f7c9eda10ddb8a8289b5bc758bd8f31fd5594e93)

Upstream-Commit: f7c9eda10ddb8a8289b5bc758bd8f31fd5594e93
Upstream-PR: goharbor/harbor#23578
Upstream-Author: @Jason-Lee3
Cherry-Pick-Status: clean
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

[Feature] Add specific metrics for Proxy Cache: Upstream Requests vs. Total Registry Requests

0 participants