Document plugin-owned Prometheus metrics per plugin
Add a Metrics section to each of the six plugin pages whose plugin
registers its own counters and gauges through ConfigureMetrics. Each
section lists the exact metric names, types, and meanings taken from
the plugin source (not invented).
- bgp-rib: ze_rib_routes_in/out_total, per-peer vectors, per-peer/
family insert/withdrawal counters, plus attribute-pool stats.
Also adds a short Route replay on reconnect note pointing at the
three-bug fix from the recent pass (direction routing, missing
WireUpdate, text-codec format mismatch).
- bgp-watchdog: peers_up, route_announcements_total,
route_withdrawals_total.
- bgp-rpki: vrps_cached, sessions_active,
validation_outcomes_total{result}.
- bgp-persist: routes_stored, peers_tracked, route_replays_total.
- fib-kernel: routes_installed, route_installs/updates/removals_total,
errors_total{operation}.
- sysrib: routes_best, route_changes_total{action},
events_received_total.
go-plugins.md, plugins.md, and telemetry.md: add bgp-rib to the list
of plugins that ship ConfigureMetrics (was previously listed as five,
now six).
All metric names verified against register.go / *.go sources.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Document plugin-owned Prometheus metrics
Go plugins can now register their own Prometheus metrics through a
ConfigureMetrics callback on the Registration. The engine calls it
with a metrics.Registry before RunEngine; the plugin declares its
counters and gauges and holds them in package-level state.
go-plugins.md: add a Prometheus metrics section with a code example
and the ze_{scope}_{subject}_{detail} naming convention. List the
five shipped examples (bgp-watchdog, bgp-rpki, bgp-persist,
fib-kernel, sysrib).
telemetry.md: split the exposed-metrics section into engine metrics
and plugin-owned metrics with a pointer to go-plugins.md.
Source commit: 7fcc8083 (main repo).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Flatten wiki to root directory for GitHub wiki compatibility
GitHub wiki resolves pages by filename in the root directory only.
Moved all 123 .md files from subdirectories to root. Renamed
configuration/interfaces.md to configuration-interfaces.md to avoid
collision with interfaces/interfaces.md. Fixed 8 image paths.
Subdirectories are now empty (images/ retained for assets).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>