Skip to content

Conversation

vteratipally
Copy link
Contributor

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.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 30, 2021
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 30, 2021
@vteratipally
Copy link
Contributor Author

/retest

1 similar comment
@vteratipally
Copy link
Contributor Author

/retest

@vteratipally
Copy link
Contributor Author

/test pull-npd-e2e-kubernetes-gce-gci
/test pull-npd-e2e-kubernetes-gce-ubuntu
/test pull-npd-e2e-kubernetes-gce-ubuntu-custom-flags
/test pull-npd-e2e-kubernetes-gce-gci-custom-flags

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Jul 9, 2021
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 9, 2021
@jeremyje
Copy link
Contributor

jeremyje commented Jul 9, 2021

/lgtm cancel

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 9, 2021
@vteratipally
Copy link
Contributor Author

/test pull-npd-e2e-kubernetes-gce-gci


@vteratipally
Copy link
Contributor Author

/retest

2 similar comments
@vteratipally
Copy link
Contributor Author

/retest

@vteratipally
Copy link
Contributor Author

/retest

@vteratipally
Copy link
Contributor Author

/assign @Random-Liu

@vteratipally
Copy link
Contributor Author

closes issue #614

@Random-Liu
Copy link
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 31, 2021
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 31, 2021
@k8s-ci-robot k8s-ci-robot merged commit 56c592a into kubernetes:master Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

4 participants