Skip to content

Add BGP/BFD session health tab to Network Health page - #1707

Draft
jpinsonneau wants to merge 6 commits into
netobserv:mainfrom
jpinsonneau:bgp-health-tab
Draft

jpinsonneau wants to merge 6 commits into
netobserv:mainfrom
jpinsonneau:bgp-health-tab

Conversation

@jpinsonneau

@jpinsonneau jpinsonneau commented Aug 24, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds a third BGP context tab on the Health page (alongside NetObserv and Platform) to monitor BGP and BFD session alerts sourced from frrk8s_* Prometheus metrics
  • Displays alerts grouped globally (cluster-wide) and per-peer (by BGP peer IP), with summary cards showing critical/warning/info counts and firing/pending/silenced states
  • Adds ASN enrichment support: bgpEnrichment feature flag, SrcASN/DstASN flow fields, ASN columns/filters/grouping in topology scopes, and common ASN filter with endpoint category fallback
  • Includes Go mock data for standalone development
image

Dependencies

  • Builds on top of PR NETOBSERV-2572: OVN health tab and extensible context tabs #1699 (Platform/OVN health tab)
  • Requires bgp-cloud-connector PrometheusRules deployed on the cluster (BGPSessionHealth / BFDSessionHealth groups with frrk8s_* metrics)
  • Companion operator-side config changes needed in netobserv-operator (static-frontend-config.yaml)

Test plan

  • Verify BGP tab appears when BGP PrometheusRules are deployed and frrk8s_* metrics exist
  • Verify BGP tab is hidden when no BGP rules are found (graceful fallback)
  • Verify Global/Peers subtab navigation and alert display
  • Verify summary cards show correct severity counts
  • Verify standalone mock mode shows BGP alerts
  • Verify ASN filter works as common (non-directional) and src/dst variants
  • Verify ASN grouping within topology scopes (host, namespace, owner, resource)

jpinsonneau and others added 6 commits August 12, 2026 16:03
Show CNO OVN-Kubernetes platform alerts under a read-only Platform
context on Network Health, with Global/Nodes views parallel to NetObserv.
Platform alerts are visible for troubleshooting but excluded from the
NetObserv health score.

Co-authored-by: Cursor <cursoragent@cursor.com>
Prometheus rule labels do not expose the PrometheusRule CR prometheus label,
so select OVN alerts by group name instead of a prometheus match filter.

Co-authored-by: Cursor <cursoragent@cursor.com>
Surface aggregated alert counts and status icons on top-level tabs so
users can spot issues before switching between NetObserv and Platform.

Co-authored-by: Cursor <cursoragent@cursor.com>
Introduce a third context tab (BGP) alongside NetObserv and Platform
for monitoring BGP and BFD session alerts from frr-k8s. The tab
displays alerts grouped globally and per-peer, with summary cards
showing critical/warning/info counts.

Also adds ASN enrichment support: bgpEnrichment feature flag, SrcASN/
DstASN flow fields, ASN column/filter/grouping configuration, and
common ASN filter with endpoint category fallback.

Includes Go mock data for standalone development.

Co-authored-by: Cursor <cursoragent@cursor.com>
@openshift-ci

openshift-ci Bot commented Aug 24, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci

openshift-ci Bot commented Aug 24, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign mffiedler for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details 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

@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@openshift-ci

openshift-ci Bot commented Sep 4, 2026

Copy link
Copy Markdown

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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.

1 participant