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

Expose more conntrack-related error as metrics #211

Merged
merged 1 commit into from
May 2, 2023

Conversation

yiningou
Copy link
Contributor

No description provided.

@yiningou
Copy link
Contributor Author

Expose more conntrack-related error as metrics.
Please review my codes. Thanks!
/assign jingyuanliang
/assign MrHohn

@jingyuanliang
Copy link
Member

I'm thinking if we should still permute all metrics like this as the list grows, or switch to a map potentially with an allowlist to capture all metrics. @MrHohn thoughts?

@MrHohn
Copy link
Collaborator

MrHohn commented May 2, 2023

I'm thinking if we should still permute all metrics like this as the list grows, or switch to a map potentially with an allowlist to capture all metrics. @MrHohn thoughts?

In this case I won't expect the list to grow in a significant way - these are the conntrack stats that exist for years. So I'm fine with anything simple here.

@jingyuanliang
Copy link
Member

/lgtm
wait for @MrHohn to approve.

@google-oss-prow google-oss-prow bot added the lgtm label May 2, 2023
}
}
if indices.insertFailed == -1 || indices.drop == -1 {
if indices.found == -1 || indices.invalid == -1 ||
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like this won't work as we didn't explicitly assign the other fields -1 initially?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Set all the indices to -1 before this judgment.

Copy link
Collaborator

@MrHohn MrHohn left a comment

Choose a reason for hiding this comment

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

Thanks!
/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label May 2, 2023
@google-oss-prow
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: MrHohn, yiningou

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

@google-oss-prow google-oss-prow bot merged commit 5fe78d8 into GoogleCloudPlatform:master May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants