Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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 ...

@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
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