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

enable metrics for deploy config #2482

Merged
merged 4 commits into from Jan 11, 2024

Conversation

fmoehler
Copy link
Contributor

@fmoehler fmoehler commented Dec 13, 2023

What is this change about?

We introduced deploy configs with Bosh CLI v7.5.0+. As this could potentially lead to unwanted deploy flags if the config is forgotten/enabled too long, we introduce a metrics that returns 1 in case a deploy config is uploaded.

Please provide contextual information.

https://github.com/cloudfoundry/docs-bosh/blob/master/content/deploy-config.md

What tests have you run against this PR?

Create Dev Release and checked the response of the metrics server

How should this change be described in bosh release notes?

The default metrics now return if a deploy config was uploaded or not to avoid it being forgotten

Does this PR introduce a breaking change?

No

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

@AttilaAlmasi

@fmoehler fmoehler marked this pull request as draft December 13, 2023 16:33
@fmoehler fmoehler marked this pull request as ready for review December 14, 2023 15:36
@fmoehler fmoehler marked this pull request as draft December 14, 2023 15:37
@fmoehler fmoehler marked this pull request as ready for review December 14, 2023 15:38
@fmoehler fmoehler force-pushed the create-metrics-for-deploy-config branch from 448d876 to 1874004 Compare December 18, 2023 14:05
Copy link
Contributor

@a-hassanin a-hassanin left a comment

Choose a reason for hiding this comment

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

minor suggestions

src/bosh-director/lib/bosh/director/api/config_manager.rb Outdated Show resolved Hide resolved
src/bosh-director/spec/unit/api/config_manager_spec.rb Outdated Show resolved Hide resolved
Copy link
Contributor

@a-hassanin a-hassanin left a comment

Choose a reason for hiding this comment

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

LGTM

@rkoster rkoster requested review from a team, aramprice and klakin-pivotal and removed request for AttilaAlmasi and a team December 21, 2023 15:38
Copy link
Contributor

@ystros ystros left a comment

Choose a reason for hiding this comment

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

lgtm!

Copy link
Contributor

@a-hassanin a-hassanin left a comment

Choose a reason for hiding this comment

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

LGTM

@rkoster rkoster merged commit ac15a87 into cloudfoundry:main Jan 11, 2024
1 check passed
@rkoster
Copy link
Contributor

rkoster commented Jan 11, 2024

Thanks! @fmoehler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

6 participants