-
Notifications
You must be signed in to change notification settings - Fork 41
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
Conversation
Expose more conntrack-related error as metrics. |
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. |
/lgtm |
} | ||
} | ||
if indices.insertFailed == -1 || indices.drop == -1 { | ||
if indices.found == -1 || indices.invalid == -1 || |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
/lgtm
[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 |
No description provided.