Skip to content

feat(metrics): v1.90 contract freeze — alias removal + governance#432

Merged
itcmsgr merged 4 commits intomainfrom
feat/v1.90-contract-freeze
Apr 16, 2026
Merged

feat(metrics): v1.90 contract freeze — alias removal + governance#432
itcmsgr merged 4 commits intomainfrom
feat/v1.90-contract-freeze

Conversation

@itcmsgr
Copy link
Copy Markdown
Owner

@itcmsgr itcmsgr commented Apr 16, 2026

v1.90 Contract Freeze

Track A.1: Remove 9 deprecated metric aliases

INV-M-007 completed. The one-release compatibility window (v1.89) has passed.

Removed aliases:

Old name (deleted) New name (kept)
nftban_go_goroutines nftban_runtime_goroutines
nftban_go_gc_cpu_fraction nftban_runtime_gc_cpu_fraction
nftban_go_gc_pause_seconds nftban_runtime_gc_pause_seconds
nftban_go_heap_alloc_bytes nftban_runtime_heap_alloc_bytes
nftban_go_heap_inuse_bytes nftban_runtime_heap_inuse_bytes
nftban_go_heap_released_bytes nftban_runtime_heap_released_bytes
nftban_softnet_drops_total nftban_softnet_drops
nftban_softnet_time_squeeze_total nftban_softnet_time_squeeze
nftban_nic_rx_dropped_total nftban_nic_rx_dropped

Canonical metric count: 110 (frozen)

Governance files

  • STATUS.md — Integrity & Build Status audit surface (24 workflows, 9 contract gates)
  • CODE_OF_CONDUCT.md — Engineering-aligned conduct policy
  • docs/DESIGN_PRINCIPLES.md — 12 design principles for 1.9x line
  • SECURITY.md — Added STATUS.md link for auditor flow
  • CONTRIBUTING.md — Added system integrity model section

Invariants verified

All 8 invariants (INV-M-001 through INV-M-008) still hold after alias removal.

🤖 Generated with Claude Code

…esign principles

Track A.1: Remove 9 deprecated metric aliases (INV-M-007 completed)
  - nftban_go_goroutines → removed (use nftban_runtime_goroutines)
  - nftban_go_gc_cpu_fraction → removed (use nftban_runtime_gc_cpu_fraction)
  - nftban_go_gc_pause_seconds → removed (use nftban_runtime_gc_pause_seconds)
  - nftban_go_heap_alloc_bytes → removed (use nftban_runtime_heap_alloc_bytes)
  - nftban_go_heap_inuse_bytes → removed (use nftban_runtime_heap_inuse_bytes)
  - nftban_go_heap_released_bytes → removed (use nftban_runtime_heap_released_bytes)
  - nftban_softnet_drops_total → removed (use nftban_softnet_drops)
  - nftban_softnet_time_squeeze_total → removed (use nftban_softnet_time_squeeze)
  - nftban_nic_rx_dropped_total → removed (use nftban_nic_rx_dropped)
  Canonical metric count: 110 (frozen)

Governance files:
  - STATUS.md: Integrity & Build Status audit surface (24 workflows, 9 gates)
  - CODE_OF_CONDUCT.md: Engineering-aligned conduct policy
  - docs/DESIGN_PRINCIPLES.md: 12 design principles for 1.9x line
  - SECURITY.md: Added STATUS.md link for auditor flow
  - CONTRIBUTING.md: Added system integrity model section

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 16, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

itcmsgr and others added 3 commits April 16, 2026 15:43
G90 blocker fix — exporter metric naming alignment.

Shell unified exporter was emitting 'nftban_softnet_drops_total' while
daemon /metrics emits 'nftban_softnet_drops' (canonical v1.90 name).

Fixed:
- nftban_unified_exporter_collect.sh: nftban_softnet_drops_total → nftban_softnet_drops
- nftban_unified_exporter_collect.sh: JSON key softnet_drops_total → softnet_drops
- nftban_exporter_json_compat.sh: softnet_drops_total → softnet_drops

All export surfaces now agree on canonical metric name.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
….F-7)

Cross-surface audit found 7 proven phantom/wrong metric names in
dashboards and alerts. All fixed:

F-1: nftban_fail2ban_jails_active → removed (phantom, fail2ban not used)
F-2: nftban_health_status{component="fail2ban"} → replaced with daemon
F-3: nftban_nftables_rules_count → nftban_nftables_rules_total
F-4: nftban_last_update_timestamp → nftban_exporter_last_success_timestamp
F-5: nftban_blocks_permanent/temporary → nftban_blacklist_ipv4_perm/temp
F-6: nftban_blocks_by_country → nftban_bans_by_country_total
F-7: Stale fail2ban text → removed (all fail2ban references purged)

All 5 files updated:
- install/prometheus/alerts/nftban-metrics.yml
- install/grafana/dashboards/nftban_performance.json
- install/grafana/dashboards/nftban_overview.json
- install/grafana/dashboards/nftban_health.json
- install/grafana/dashboards/nftban_geographic.json

Zero phantom metric names remaining in any dashboard/alert/template.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
CI Policy Gates require generated FHS outputs to match the canonical
spec. VERSION bump to 1.90.0 caused header version drift.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@itcmsgr itcmsgr merged commit f51c4ba into main Apr 16, 2026
48 checks passed
@itcmsgr itcmsgr deleted the feat/v1.90-contract-freeze branch April 16, 2026 16:08
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