Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

MON-2895: toggle netlink implementation of netclass collector #1894

Merged
merged 1 commit into from
Mar 1, 2023

Conversation

raptorsun
Copy link
Contributor

  • I added CHANGELOG entry for this change.
  • No user facing changes, so no entry in CHANGELOG was needed.

This PR follows #1893 . It should be merged after that one.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Feb 15, 2023
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Feb 15, 2023

@raptorsun: This pull request references MON-2895 which is a valid jira issue.

In response to this:

  • I added CHANGELOG entry for this change.
  • No user facing changes, so no entry in CHANGELOG was needed.

This PR follows #1893 . It should be merged after that one.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 15, 2023
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 15, 2023
@raptorsun raptorsun changed the title [WIP] MON-2895: toggle netlink implementation of netclass collector MON-2895: toggle netlink implementation of netclass collector Feb 15, 2023
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 15, 2023
@raptorsun
Copy link
Contributor Author

/hold
until #1893 is merged.

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 15, 2023
@raptorsun
Copy link
Contributor Author

/retest-required

pkg/manifests/types.go Outdated Show resolved Hide resolved
pkg/manifests/types.go Outdated Show resolved Hide resolved
@raptorsun
Copy link
Contributor Author

/test e2e-agnostic-operator

@raptorsun
Copy link
Contributor Author

/test e2e-agnostic-operator

1 similar comment
@raptorsun
Copy link
Contributor Author

/test e2e-agnostic-operator

@raptorsun raptorsun force-pushed the feature/MON-2895 branch 4 times, most recently from 3d5729b to 11739c3 Compare February 22, 2023 17:01
@raptorsun
Copy link
Contributor Author

/test e2e-aws-single-node

@raptorsun
Copy link
Contributor Author

/retest-required

Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 23, 2023
@Senthamilarasu-STA
Copy link

/label px-approved

@openshift-ci openshift-ci bot added the px-approved Signifies that Product Support has signed off on this PR label Feb 27, 2023
@raptorsun
Copy link
Contributor Author

The PR #1893 has been merged.
/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 27, 2023
@raptorsun
Copy link
Contributor Author

Hello @Tai-RedHat @bburt-rh , the PR is ready for review, could you please have a look? 🙋‍♂️

@Tai-RedHat
Copy link

tested PR with cluster-bot, new feature implemented.
/label qe-approved

@openshift-ci openshift-ci bot added the qe-approved Signifies that QE has signed off on this PR label Feb 28, 2023
| Property | Type | Description |
| -------- | ---- | ----------- |
| enabled | bool | A Boolean flag that enables or disables the `netclass` collector. |
| useNetlink | bool | A Boolean flag that activates the netlink implementation of the `netclass` collector. This improves performance of `netclass` collector while omitting these metrics: `node_network_address_assign_type`, `node_network_name_assign_type`, `node_network_device_id`. |
Copy link
Contributor

@bburt-rh bburt-rh Feb 28, 2023

Choose a reason for hiding this comment

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

Suggested change
| useNetlink | bool | A Boolean flag that activates the netlink implementation of the `netclass` collector. This improves performance of `netclass` collector while omitting these metrics: `node_network_address_assign_type`, `node_network_name_assign_type`, `node_network_device_id`. |
| useNetlink | bool | A Boolean flag that activates the `netlink` implementation of the `netclass` collector. This implementation improves the performance of the `netclass` collector by omitting these metrics: `node_network_address_assign_type`, `node_network_name_assign_type`, `node_network_device_id`. |
  • change to "by omitting these metrics" if the performance improvement is a result of omitting the metrics.

| Property | Type | Description
|enabled|bool|A Boolean flag that enables or disables the `netclass` collector.

|useNetlink|bool|A Boolean flag that activates the netlink implementation of the `netclass` collector. This improves performance of `netclass` collector while omitting these metrics: `node_network_address_assign_type`, `node_network_name_assign_type`, `node_network_device_id`.
Copy link
Contributor

@bburt-rh bburt-rh Feb 28, 2023

Choose a reason for hiding this comment

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

Suggested change
|useNetlink|bool|A Boolean flag that activates the netlink implementation of the `netclass` collector. This improves performance of `netclass` collector while omitting these metrics: `node_network_address_assign_type`, `node_network_name_assign_type`, `node_network_device_id`.
|useNetlink|bool|A Boolean flag that activates the `netlink` implementation of the `netclass` collector. This implementation improves the performance of the `netclass` collector by omitting these metrics: `node_network_address_assign_type`, `node_network_name_assign_type`, `node_network_device_id`.

type NodeExporterCollectorNetClassConfig struct {
// A Boolean flag that enables or disables the `netclass` collector.
Enabled bool `json:"enabled,omitempty"`
// A Boolean flag that activates the netlink implementation of the `netclass` collector.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// A Boolean flag that activates the netlink implementation of the `netclass` collector.
// A Boolean flag that activates the `netlink` implementation of the `netclass` collector.

// A Boolean flag that enables or disables the `netclass` collector.
Enabled bool `json:"enabled,omitempty"`
// A Boolean flag that activates the netlink implementation of the `netclass` collector.
// This improves performance of `netclass` collector while omitting these metrics:
Copy link
Contributor

@bburt-rh bburt-rh Feb 28, 2023

Choose a reason for hiding this comment

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

Suggested change
// This improves performance of `netclass` collector while omitting these metrics:
// This implementation improves the performance of the `netclass` collector by omitting these metrics:

@bburt-rh
Copy link
Contributor

@raptorsun Added a few suggested changes, but otherwise LGTM.

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Feb 28, 2023
@raptorsun
Copy link
Contributor Author

@raptorsun Added a few suggested changes, but otherwise LGTM.

Thank you for the review :D
The documentation has been updated accordingly in the new commit.

@bburt-rh
Copy link
Contributor

/label docs-approved

@openshift-ci openshift-ci bot added the docs-approved Signifies that Docs has signed off on this PR label Feb 28, 2023
@raptorsun
Copy link
Contributor Author

/retest-required

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 28, 2023

@raptorsun: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Copy link
Contributor

@JoaoBraveCoding JoaoBraveCoding left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 1, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 1, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JoaoBraveCoding, raptorsun, simonpasquier

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:
  • OWNERS [JoaoBraveCoding,raptorsun,simonpasquier]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. docs-approved Signifies that Docs has signed off on this PR jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. px-approved Signifies that Product Support has signed off on this PR qe-approved Signifies that QE has signed off on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants