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

[WIP] management cluster status metrics #119

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

venkataanil
Copy link
Contributor

It runs a thread which loops through all SC and corresponding MC and pushes their state change timings to elastic search. It also adds hosted cluster count of a MC to elastic search.

Description

Fixes

It runs a thread which loops through all SC and corresponding MC
and pushes their state change timings to elastic search.
It also adds hosted cluster count of a MC to elastic search.
@smalleni
Copy link

smalleni commented Mar 3, 2023

@venkataanil Instead of copying some code pieces from https://github.com/cloud-bulldozer/perfscale-managed-services/blob/8f6614ffcc0d4deac5de23863d6cbb8e0c898bcf/rosa-hypershift/rosa-hosted-wrapper.py can you not import those methods and tweak your wrapper to use them?

cc: @morenod @dry923

time.sleep(5)
logging.info('MC Watcher thread started')
logging.info('Getting MC status every %d seconds' % int(delay))
# ocm get /api/osd_fleet_mgmt/v1/service_clusters --parameter search="region is 'us-east-2' and status is 'ready'"
Copy link

Choose a reason for hiding this comment

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

Is it possible to watch status of all MCs across all SCs in a sector?

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