Skip to content

HDDS-8783. Add metrics for volume scanner #8448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

sarvekshayr
Copy link
Contributor

What changes were proposed in this pull request?

Added below listed metrics for volume scanner:

  • NumVolumeChecks
  • NumAllVolumeChecks
  • NumAllVolumeSetsChecks
  • NumSkippedChecks

(More metrics can be added further.)

What is the link to the Apache JIRA

HDDS-8783

How was this patch tested?

Checked manually in DN JMX:
http://localhost:57859/jmx?qry=Hadoop:service=HddsDatanode,name=StorageVolumeCheckerMetrics

{
  "beans" : [ {
    "name" : "Hadoop:service=HddsDatanode,name=StorageVolumeCheckerMetrics",
    "modelerType" : "StorageVolumeCheckerMetrics",
    "tag.Context" : "dfs",
    "tag.Hostname" : "fd2d58b52937",
    "NumAllVolumeChecks" : 2,
    "NumAllVolumeSetsChecks" : 0,
    "NumSkippedChecks" : 0,
    "NumVolumeChecks" : 0
  } ]
}

after an hour volume scanner runs again

{
  "beans" : [ {
    "name" : "Hadoop:service=HddsDatanode,name=StorageVolumeCheckerMetrics",
    "modelerType" : "StorageVolumeCheckerMetrics",
    "tag.Context" : "dfs",
    "tag.Hostname" : "fd2d58b52937",
    "NumAllVolumeChecks" : 4,
    "NumAllVolumeSetsChecks" : 1,
    "NumSkippedChecks" : 0,
    "NumVolumeChecks" : 0
  } ]
}

@errose28 errose28 added the scanners Changes related to datanode container and volume scanners label May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
metrics scanners Changes related to datanode container and volume scanners
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants