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

feat: Maintenance window metric #2238

Merged
merged 8 commits into from
Feb 6, 2025

Conversation

ruanxin
Copy link
Contributor

@ruanxin ruanxin commented Feb 5, 2025

Description
add maintenance window metric

Related issue(s)
#2221

@ruanxin ruanxin requested a review from a team as a code owner February 5, 2025 13:17
@kyma-bot kyma-bot added cla: yes Indicates the PR's author has signed the CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 5, 2025
@ruanxin ruanxin changed the title maintenance window metric feat: Maintenance window metric Feb 5, 2025
cmd/main.go Outdated Show resolved Hide resolved
@LeelaChacha
Copy link
Contributor

WDYT about returning an error in case the policy file is not found? Currently, we return nil for error in that case. I would expect the read_success metric to be false for this case.

@ruanxin
Copy link
Contributor Author

ruanxin commented Feb 6, 2025

WDYT about returning an error in case the policy file is not found? Currently, we return nil for error in that case. I would expect the read_success metric to be false for this case.

I agree, this case should not return nil

@ruanxin ruanxin force-pushed the maintence-window-metric branch from f513de3 to 0f139b0 Compare February 6, 2025 13:08
Copy link
Contributor

@LeelaChacha LeelaChacha left a comment

Choose a reason for hiding this comment

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

LGTM

@kyma-bot kyma-bot added the lgtm Looks good to me! label Feb 6, 2025
@ruanxin ruanxin enabled auto-merge (squash) February 6, 2025 13:42
@kyma-bot kyma-bot removed the lgtm Looks good to me! label Feb 6, 2025
@kyma-bot
Copy link
Contributor

kyma-bot commented Feb 6, 2025

New changes are detected. LGTM label has been removed.

@ruanxin ruanxin added the lgtm Looks good to me! label Feb 6, 2025
@ruanxin ruanxin merged commit 1f75903 into kyma-project:main Feb 6, 2025
71 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. lgtm Looks good to me! size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Maintenance Windows] Write metric and configure alerting when unable to get config at startup
3 participants