Skip to content

feat(monitoring): add Dashboard 6 (Gitter & Recoverer Deep-Dive) and Gitter metrics - #6488

Open
jess-lowe wants to merge 1 commit into
google:masterfrom
jess-lowe:feat/dashboard-6-gitter-recoverer
Open

jess-lowe wants to merge 1 commit into
google:masterfrom
jess-lowe:feat/dashboard-6-gitter-recoverer

Conversation

@jess-lowe

@jess-lowe jess-lowe commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Implements Dashboard 6 (6. Gitter & Recoverer Deep-Dive) for Plutono v7.5.52 (schemaVersion: 27) and adds the remaining Gitter telemetry metrics (osv_gitter_repos_cached, osv_gitter_commit_range_size_commits, and fetch_error wiring).

Note: This pull request was developed with AI assistance.

Details

  • Gitter & Metrics Instrumentation (go/):
    • Defined osv_gitter_repos_cached (cached repositories gauge) and osv_gitter_commit_range_size_commits (histogram by endpoint) in go/internal/metrics/metrics.go.
    • Updated updateDiskMetrics in go/cmd/gitter/gitter.go to count cached repo directories in git-store (osv_gitter_repos_cached), recorded range sizes in /affected-commits and /commit-diffs, and wired metrics.RecordGitterDataError(metrics.GitterErrorFetch) on clone/fetch failures in go/cmd/gitter/git.go (excluding context cancellations).
  • Dashboard 6 (gitter-recoverer-deep-dive.json):
    • Gitter SSD Cache & Recoverer KPIs: Disk utilization % gauge, cached repos on disk, 24h commits scanned, 24h Git data/fetch errors, 24h recoverer succeeded/failed counts.
    • Gitter HTTP Throughput & Latency: Request rate by endpoint (/git, /cache, /affected-commits, /tags, /file-diffs, /file-content, /commit-diffs) and status (2xx/4xx/5xx), per-operation P95 latency, aggregate P50/P90/P95/P99 percentiles, and SSD usage + cached repo growth.
    • Commit Velocity, Range Size & Recoverer Activity: Commits scanned vs. bad_hash/bad_repo_url/fetch_error rates, P50/P90/P95 commit range sizes per request, and hourly recoverer task breakdown (gcs_retry, gcs_missing, gcs_gen_mismatch, generic).
    • Pod Resource Health & Error Triage: GKE k8s_container memory usage & restarts for gitter/recoverer, 24h 4xx/5xx share, and pre-filtered Cloud Logs Explorer links for oss-vdb and oss-vdb-test.
  • Registered gitter-recoverer-deep-dive.json in base/monitoring/kustomization.yaml and added its directory link to home.json.

Testing

  • Added/updated unit tests in go/internal/metrics/metrics_test.go (TestMetricsRecording) and go/cmd/gitter/gitter_test.go (TestUpdateDiskMetrics).
  • Verified go test -v -race -count=1 ./internal/metrics/..., go test -v -short -race -count=1 -run 'TestUpdateDiskMetrics' ./cmd/gitter/..., and golangci-lint (0 issues).
  • Verified JSON syntax and kubectl kustomize builds cleanly across oss-vdb-test and oss-vdb/monitoring.

@jess-lowe
jess-lowe requested a review from Ly-Joey December 2, 2026 03:44
@jess-lowe
jess-lowe force-pushed the feat/dashboard-6-gitter-recoverer branch from 1422f92 to a584bbf Compare December 2, 2026 03:53
@jess-lowe jess-lowe changed the title feat(monitoring): add Dashboard 6 (Gitter & Recoverer Deep-Dive) feat(monitoring): add Dashboard 6 (Gitter & Recoverer Deep-Dive) and Gitter metrics Dec 2, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.61538% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.03%. Comparing base (20d257f) to head (a584bbf).
⚠️ Report is 13 commits behind head on master.

Files with missing lines Patch % Lines
go/cmd/gitter/git.go 66.66% 2 Missing ⚠️
go/internal/metrics/metrics.go 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6488      +/-   ##
==========================================
+ Coverage   56.99%   57.03%   +0.03%     
==========================================
  Files         225      225              
  Lines       23494    23512      +18     
==========================================
+ Hits        13391    13409      +18     
  Misses      10100    10100              
  Partials        3        3              
Flag Coverage Δ
go 61.10% <84.61%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

This branch has not been deployed

No deployments
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.

2 participants