-
Notifications
You must be signed in to change notification settings - Fork 676
Add a check if the metric is nil so that collector doesn't collect metrics. #587
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
Conversation
/retest |
1 similar comment
/retest |
/test pull-npd-e2e-kubernetes-gce-gci |
/lgtm cancel |
/test pull-npd-e2e-kubernetes-gce-gci |
/retest |
2 similar comments
/retest |
/retest |
/assign @Random-Liu |
closes issue #614 |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Random-Liu, vteratipally The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Add a check if the metric is nil so that collector doesn't collect metrics.
NPD collects the metrics based on the input system-stats-monitor.json. If the metric config is present in the input, NPD shouldn't collect the metrics, but currently NPD still tries to collect the metrics even the metric is not present and which would result in nil pointer.
This should fix the issue.