solves #229
Description of changes:
his PR enhances the network policy agent by adding packet length and direction information to policy events. These additions enable the export of more detailed metrics, specifically:
Packet drop counts with direction
Packet drop bytes with direction
Sample Output of metrics:
curl localhost:61680/metrics
# HELP network_policy_drop_bytes_total Total number of bytes dropped by network policy agent
# TYPE network_policy_drop_bytes_total counter
network_policy_drop_bytes_total{direction="ingress"} 1.0665324e+07
# HELP network_policy_drop_count_total Total number of packets dropped by network policy agent
# TYPE network_policy_drop_count_total counter
network_policy_drop_count_total{direction="ingress"} 144126
Important Notes
These metrics will only be measured if the --enable-policy-event-logs flag is set to true.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available:
solves #229 Description of changes: his PR enhances the network policy agent by adding packet length and direction information to policy events. These additions enable the export of more detailed metrics, specifically:
Sample Output of metrics:
Important Notes
These metrics will only be measured if the --enable-policy-event-logs flag is set to true.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.