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

Support health monitoring mode for NPD #479

Merged
merged 27 commits into from
Oct 16, 2024
Merged

Support health monitoring mode for NPD #479

merged 27 commits into from
Oct 16, 2024

Conversation

jessieqliu
Copy link
Contributor

@jessieqliu jessieqliu commented Aug 23, 2024

Supports the full list of system stat metrics that can be collected by NPD for health monitoring. The full configuration will be enabled if allowed by the policy and spec.

Breaking Changes

  • Changes the signature of spec.GetLaunchPolicy(imageLabels map[string]string) to spec.GetLaunchPolicy(imageLabels map[string]string, logger *log.Logger)

@jessieqliu
Copy link
Contributor Author

/gcbrun

4 similar comments
@jessieqliu
Copy link
Contributor Author

/gcbrun

@jessieqliu
Copy link
Contributor Author

/gcbrun

@jessieqliu
Copy link
Contributor Author

/gcbrun

@jessieqliu
Copy link
Contributor Author

/gcbrun

@jessieqliu
Copy link
Contributor Author

/gcbrun

1 similar comment
@jessieqliu
Copy link
Contributor Author

/gcbrun

@jessieqliu
Copy link
Contributor Author

/gcbrun

@jessieqliu
Copy link
Contributor Author

/gcbrun

@jessieqliu
Copy link
Contributor Author

/gcbrun

@jessieqliu
Copy link
Contributor Author

/gcbrun

@jessieqliu
Copy link
Contributor Author

/gcbrun

@jessieqliu
Copy link
Contributor Author

/gcbrun

1 similar comment
@jessieqliu
Copy link
Contributor Author

/gcbrun

Copy link
Contributor

@alexmwu alexmwu left a comment

Choose a reason for hiding this comment

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

Great work! Mostly minor comments except about the struct to json encoding.

if launchSpec.MonitoringEnabled == spec.All {
logger.Printf("All health monitoring metrics enabled")
if err := nodeproblemdetector.EnableAllConfig(); err != nil {
logger.Printf("failed to enable full monitoring config: %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

Since it's logged, this should be capitalized "Failed to ...

launcher/spec/launch_policy.go Show resolved Hide resolved
launcher/spec/launch_policy.go Outdated Show resolved Hide resolved
launcher/spec/launch_spec.go Outdated Show resolved Hide resolved
@jessieqliu
Copy link
Contributor Author

/gcbrun

@jessieqliu
Copy link
Contributor Author

/gcbrun

@jessieqliu jessieqliu changed the title Add health monitoring mode for NPD Support health monitoring mode for NPD Oct 16, 2024
@jessieqliu jessieqliu merged commit 114752a into main Oct 16, 2024
13 checks passed
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