Skip to content

RPKI cache-connection status metrics#159

Merged
tynany merged 1 commit intomasterfrom
rpki-cache-connection
Apr 5, 2026
Merged

RPKI cache-connection status metrics#159
tynany merged 1 commit intomasterfrom
rpki-cache-connection

Conversation

@tynany
Copy link
Copy Markdown
Owner

@tynany tynany commented Apr 5, 2026

Implement #156

New collector: collector/rpki.go

  • Disabled by default, enabled with --collector.rpki
  • Automatically queries all VRFs by reusing the existing getVRFs() helper
  • Runs show rpki cache-connection json for the default VRF and show rpki cache-connection vrf json for each additional VRF
  • Exposes two metrics:
    • frr_rpki_cache_state: 1 = connected, 0 = disconnected
    • frr_rpki_cache_preference: preference value
  • Labels: vrf, mode, host, port

Tests: collector/rpki_test.go

  • Tests processing of default and VRF-specific JSON output
  • Two test fixtures in collector/testdata/

Refactor: moved getVRFs() / parseVRFs() from route.go to collector.go

  • Now shared between the route and RPKI collectors

Dev environment (dev/)
RPKI is not supported on the default FRR container, so this is skipped. May consider compiling a custom version in the future.

@tynany tynany force-pushed the rpki-cache-connection branch from fcd2845 to 77281ad Compare April 5, 2026 11:09
@tynany tynany merged commit 33d47c8 into master Apr 5, 2026
4 checks passed
@tynany tynany deleted the rpki-cache-connection branch April 5, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant