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

Add metrics for other unhealthy VM states #2597

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

anshrupani
Copy link
Contributor

What is this change about?

As of now, bosh does not collect metrics regarding VMs which are unhealthy (basically any state that is not running). With this PR, we now introduce a new metric: bosh_unhealthy_instances, which basically reports the same.

What tests have you run against this PR?

We tested a bosh dev release on our development environments for the new metric, and it worked fine. We also ran the bosh-monitor unit tests, and added more as needed.

How should this change be described in bosh release notes?

Bosh now emits a new metric: "bosh_unhealthy_instances", which can be used to track unhealthy instances per deployment over time.

Does this PR introduce a breaking change?

No

Tag your pair, your PM, and/or team!

@DennisAhaus

@anshrupani anshrupani changed the title Add metrics for other vm states Add metrics for other unhealthy VM states Jan 22, 2025
src/bosh-monitor/lib/bosh/monitor/director.rb Outdated Show resolved Hide resolved
src/bosh-monitor/spec/unit/bosh/monitor/director_spec.rb Outdated Show resolved Hide resolved
src/bosh-monitor/lib/bosh/monitor/director.rb Outdated Show resolved Hide resolved
src/bosh-monitor/lib/bosh/monitor/director.rb Outdated Show resolved Hide resolved
src/bosh-monitor/spec/unit/bosh/monitor/director_spec.rb Outdated Show resolved Hide resolved
src/bosh-monitor/lib/bosh/monitor/director.rb Outdated Show resolved Hide resolved
@jpalermo jpalermo requested review from a team, aramprice and lnguyen and removed request for a team January 23, 2025 15:53
Copy link
Member

@xtreme-nitin-ravindran xtreme-nitin-ravindran left a comment

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
None yet
Projects
Status: Pending Merge | Prioritized
Development

Successfully merging this pull request may close these issues.

4 participants