Skip to content
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

mgr/dashboard: Add metric relative to osd blocklist #49049

Merged
merged 1 commit into from Dec 19, 2022

Conversation

aaSharma14
Copy link
Contributor

@aaSharma14 aaSharma14 commented Nov 25, 2022

It would be good to have a metric with number of clients "blocklisted" of command: "ceph osd blocklist ls". The reason to have this is metric is have an alert when this number raise up.

Fixes: https://tracker.ceph.com/issues/58083
Signed-off-by: Aashish Sharma aasharma@redhat.com

Screenshot from 2022-11-25 11-40-35

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

It would be good to have a metric with number of clients "blocklisted" of command: "ceph osd blocklist ls". The reason to have this is metric is have an alert when this number raise up.

Fixes: https://tracker.ceph.com/issues/58083
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
Copy link
Contributor

@avanthakkar avanthakkar left a comment

Choose a reason for hiding this comment

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

@aaSharma14 The alert if count changes is yet to be added?

@aaSharma14 aaSharma14 requested a review from p-se December 1, 2022 11:27
@aaSharma14
Copy link
Contributor Author

jenkins test make check

Dashboard automation moved this from In progress to Reviewer approved Dec 2, 2022
Copy link
Contributor

@avanthakkar avanthakkar left a comment

Choose a reason for hiding this comment

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

LGTM!

@avanthakkar
Copy link
Contributor

@aaSharma14 The alert if count changes is yet to be added?

And can you create maybe tracker for adding any alerts related to this metric.

@avanthakkar
Copy link
Contributor

jenkins retest this please

@Pegonzal
Copy link
Contributor

jenkins test make check

@aaSharma14
Copy link
Contributor Author

jenkins retest this please

1 similar comment
@aaSharma14
Copy link
Contributor Author

jenkins retest this please

@aaSharma14
Copy link
Contributor Author

jenkins test dashboard

@aaSharma14
Copy link
Contributor Author

jenkins test dashboard cephadm

@aaSharma14
Copy link
Contributor Author

jenkins test make check arm64

@aaSharma14
Copy link
Contributor Author

jenkins test windows

@aaSharma14 aaSharma14 merged commit 1c8cde7 into ceph:main Dec 19, 2022
13 of 18 checks passed
Dashboard automation moved this from Reviewer approved to Done Dec 19, 2022
@aaSharma14 aaSharma14 deleted the add-osd-blocklist-metric branch December 19, 2022 08:07
@@ -66,9 +66,10 @@ def health_status_to_number(status: str) -> int:
return 2
raise ValueError(f'unknown status "{status}"')


Copy link
Contributor

Choose a reason for hiding this comment

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

weird. how come this change passed the run-tox-mgr test?

Comment on lines +950 to +955
@profile_method()
def get_osd_blocklisted_entries(self) -> None:
r = self.mon_command({
'prefix': 'osd blocklist ls',
'format': 'json'
})
Copy link
Member

@epuertat epuertat Jan 4, 2023

Choose a reason for hiding this comment

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

@aaSharma14 can't we pick this value from an existing cached mgr map?

If not, what about extending one of the maps to cache this new metadata?

The whole idea of the ceph-mgr is to avoid mgr-modules from interacting with the ceph-mon, so that, for read-only stuff, ceph-mgr basically shields the core Ceph cluster from the workload generated by the mgr-modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Dashboard
  
Done
6 participants