Skip to content

feat: NMv3: Prometheus metrics for network monitor#6693

Merged
jstuczyn merged 8 commits intofeat/mix-stress-testingfrom
feat/nmv3-orchestrator-prometheus
Apr 24, 2026
Merged

feat: NMv3: Prometheus metrics for network monitor#6693
jstuczyn merged 8 commits intofeat/mix-stress-testingfrom
feat/nmv3-orchestrator-prometheus

Conversation

@jstuczyn
Copy link
Copy Markdown
Contributor

@jstuczyn jstuczyn commented Apr 20, 2026

NYM-754

Wires up a /v1/metrics/prometheus scrape endpoint for the v3 orchestrator, along with the metric variants it exposes and the call-site instrumentation that feeds them. The handle follows the existing nym-node wrapper pattern: a singleton PROMETHEUS_METRICS backed by nym_metrics, with every variant pre-registered at startup so scrapes never see a missing series.

Summary

  • Request lifecycle counters — port requests, agent announce (good / bad / duplicate / contract success / failure), testrun requests (total / unknown-agent / unannounced / empty / non-empty / result submissions / errors), eviction counts.
  • Timing histograms — test duration (seconds), approximate node latency (ms), avg test packet RTT (ms), received packets ratio, node refresh cycle duration (seconds).
  • Topology gauges — bonded nodes broken out by NodeType (mixnode / gateway / mixnode_and_gateway / unknown), plus successful / failed self-described retrievals.
  • Liveness gauges — in-flight testruns (testrun_in_progress row count), total / announced known agents.
  • Volume counters — total test packets sent / received across all submitted testruns.

This change is Reviewable

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nym-explorer-v2 Ready Ready Preview, Comment Apr 24, 2026 9:38am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs-nextra Ignored Ignored Preview Apr 24, 2026 9:38am
nym-node-status Ignored Ignored Preview Apr 24, 2026 9:38am

Request Review

@jstuczyn jstuczyn force-pushed the feat/nmv3-orchestrator-prometheus branch from cb1175b to a2ed5e0 Compare April 24, 2026 09:33
Base automatically changed from feat/nmv3-results-api to feat/mix-stress-testing April 24, 2026 09:55
@jstuczyn jstuczyn merged commit 449d3a1 into feat/mix-stress-testing Apr 24, 2026
12 of 13 checks passed
@jstuczyn jstuczyn deleted the feat/nmv3-orchestrator-prometheus branch April 24, 2026 10:00
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.

2 participants