Skip to content

HDDS-16726. Remove unused metrics from OMMetrics - #11421

Open
chihsuan wants to merge 2 commits into
apache:masterfrom
chihsuan:HDDS-16726
Open

chihsuan wants to merge 2 commits into
apache:masterfrom
chihsuan:HDDS-16726

Conversation

@chihsuan

@chihsuan chihsuan commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed?

Removes 12 OMMetrics counters that are never updated: S3 bucket metrics, volume check access metrics, and unused trash metrics. Also removes their Grafana dashboard references.

These metrics will no longer be exported through /prom or JMX. Custom dashboards and alerts referencing them will need updating.

This cleanup is separate from #11410, as requested in its review.

JIRA

https://issues.apache.org/jira/browse/HDDS-16726

How was this patch tested?

  • Verified that the removed methods have no callers and no metric references remain.

CI: https://github.com/chihsuan/ozone/actions/runs/37472390734

Generated-by: Claude Code (Claude Opus 5.5)

Copilot AI balanced review requested due to automatic review settings October 6, 2026 13:42
@github-actions github-actions Bot added the om label Oct 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

Removed symbols have no remaining references, and both modified dashboards remain valid JSON.

Review effort: Balanced
Findings: None

What changed in this PR

Removes unused OM metrics and their obsolete dashboard references.

Changes:

  • Removes unmodified S3, access-check, and trash counters.
  • Removes the obsolete S3 bucket panel and updates dashboard text/layout.
File Description
OMMetrics.java Removes unused counters and methods.
Ozone - Overall Metrics.json Removes obsolete panel and closes the layout gap.
Ozone - OM Overview.json Removes outdated metric commentary.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@rich7420 rich7420 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

3 participants