-
Notifications
You must be signed in to change notification settings - Fork 373
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
Add support for the number of networkpolicies per node #834
Add support for the number of networkpolicies per node #834
Conversation
Thanks for your PR. The following commands are available:
These commands can only be run by members of the vmware-tanzu organization. |
@@ -257,9 +257,9 @@ func (r *reconciler) add(rule *CompletedRule) error { | |||
|
|||
// Count up antrea_agent_ingress_networkpolicy_rule_count or antrea_agent_egress_networkpolicy_rule_count | |||
if rule.Direction == v1beta1.DirectionIn { | |||
metrics.IngressNetworkPolicyCount.Inc() | |||
metrics.IngressNetworkPolicyRuleCount.Inc() |
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.
I feel IngressNetworkPolicyRuleCount
and EgressNetworkPolicyRuleCount
could also be tracked in cache.go together with NetworkPolicyCount
as that's the source of reconciler.
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.
+1 Putting them together also makes it easily maintainable.
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.
Thank you for the comment.It sounds good. Let me see
05562c8
to
3a84c27
Compare
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.
LGTM, thanks
/test-all |
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.
LGTM
/test-e2e |
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.
@yktsubo can you squash your commits and fix the following typo in the commit title:
s/Add support the number of networkpolicies per node/Add support for the number of networkpolicies per node
I would actually suggest to use this title for the commit instead: "Add new Prometheus metric for total number of NetworkPolicies per Node"
Signed-off-by: Yuki Tsuboi <ytsuboi@vmware.com>
3a84c27
to
d1d9486
Compare
Hi @antoninbas |
/test-all |
1 similar comment
/test-all |
/skip-whole-conformance |
Merging, thanks @yktsubo for your work. |
All, Thank you for your support until merging. |
Signed-off-by: Yuki Tsuboi <ytsuboi@vmware.com>
This PR is a part of #713 feature request
Signed-off-by: Yuki Tsuboi ytsuboi@vmware.com