Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bgpfix/bgpipe
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.18.0
Choose a base ref
...
head repository: bgpfix/bgpipe
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.19.0
Choose a head ref
  • 1 commit
  • 14 files changed
  • 1 contributor

Commits on Mar 6, 2026

  1. feat: HTTP API, Prometheus metrics stage, RPKI metrics (#32)

    Add chi-based HTTP API server (--http ADDR flag) with:
    - GET /metrics  — global Prometheus metrics (all stages, Go runtime)
    - GET /hc       — k8s-compatible JSON health check
    - GET /         — HTML dashboard (version, uptime, stages, links)
    - GET /stage/<name>/  — per-stage JSON summaries
    - GET /debug/pprof/*  — Go pprof (optional, --pprof flag)
    
    Add metrics stage: counts BGP messages with Prometheus counters.
    - messages_total{dir,type} for every (direction, message-type) combination,
      enabling PromQL aggregations like sum by (dir) or {type="update"}
    - match{filter} counters for user-defined filter expressions
    - --output FILE writes final counter values on exit for batch/MRT analysis
    
    Add Prometheus metrics to RPKI stage:
    - counters: messages_total, valid_total, invalid_total, not_found_total
    - gauges:   roa4_prefixes, roa6_prefixes (live ROA cache sizes)
    - JSON summary at /stage/rpki/
    
    Add MetricPrefix() and HTTPSlug() helper methods on StageBase so stages
    derive consistent, sanitized metric names and HTTP paths without
    duplicating logic. Stage paths moved under /stage/<name> to avoid
    conflicts with global /metrics endpoint.
    pforemski authored Mar 6, 2026
    Configuration menu
    Copy the full SHA
    eb58e07 View commit details
    Browse the repository at this point in the history
Loading