Skip to content

Pod level metrics for drop may miss localCtx labels #80

Open

Description

Describe the bug
Consider the following scenario:

Server is running in a pod on node-1
We annotate the server to observe dropped packets
Apply a network policy for ingress
When a pod on other nodes try to connect to server, the IPTABLE rule on that node will drop the packet. However, for local context, our filter_map won't have the IP of the server, hence we will not generate any event. Thus, we will see drop_count increase at the node level, but no pod level labels for the drops
True for external connections as well
This is due to how Azure NPM works today. May need to add disclaimer to account for this behavior.

cc Anubhab Majumdar (@anubhabMajumdar)

Activity

  1. github-actions commented on Mar 28, 2024

    @github-actions

    This issue is stale because it has been open for 7 days with no activity. Remove stale label or comment or this will be closed in 7 days

  2. added
    meta/waiting-for-author
    on Mar 28, 2024
  3. removed
    meta/waiting-for-author
    on Mar 28, 2024
  4. added this to the 1.0 milestone on Apr 12, 2024
  5. added
    good first issue
    help wanted
    lang/go
    scope/S
    on Nov 21, 2024
  6. niharikag09 commented on Aug 16, 2026

    @niharikag09

    Hi, I'd like to work on this issue. I also reviewed #369, which appears to describe the same missing pod-level adv_drop_count context.

    Before I start, could a maintainer confirm the preferred scope: should this add a disclaimer documenting the Azure NPM limitation, or should it change the drop-metrics enrichment logic so remote/external drops can receive pod-level labels? I can include focused tests once the intended behavior is confirmed.

  7. dedsec-terminal commented on Sep 15, 2026

    @dedsec-terminal

    is this still considered a valid issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/metricsarea/pluginscontrol-plane/standardgood first issuehelp wantedlang/gopriority/2scope/Stype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions