Skip to content

Metrics#489

Draft
apehum wants to merge 10 commits intov2.1.xfrom
feat/metrics
Draft

Metrics#489
apehum wants to merge 10 commits intov2.1.xfrom
feat/metrics

Conversation

@apehum
Copy link
Copy Markdown
Member

@apehum apehum commented Nov 3, 2025

Currently metrics are only available server-side: Spigot-based, Minestom, Fabric, Forge, NeoForge.
Proxy-side (Velocity, BungeeCord) is planned.

Configuration

Metrics are disabled by default:

[metrics]
enabled = false
# Include JVM and Netty metrics (heap, threads, GC, event loops, etc.)
jvm_metrics = false
ip = "0.0.0.0"
port = 24455

Metrics

Histograms:

  • pv_handler_time_seconds - Packet handler processing time (buckets: 0.5ms to 100ms)
  • pv_pipeline_time_seconds - Full pipeline processing time (buckets: 0.5ms to 100ms)
  • pv_keep_alive_lag_seconds - Keep-alive packet lag/delay (buckets: 0.2s to 13s)
  • pv_rtt_seconds - Round-trip time for pings (buckets: 10ms to 2s)

Counters:

  • pv_udp_packets_total{dir="in|out", kind="media|control"} - Total UDP packets by direction and type
  • pv_udp_bytes_total{dir="in|out", kind="media|control"} - Total UDP bytes by direction and type
  • pv_hard_timeouts_total{public_ip="..."} - Client timeouts per public IP
  • pv_rejoin_attempts_total{public_ip="..."} - Client rejoin attempts per public IP
  • pv_rejoin_success_total{public_ip="..."} - Successful rejoins per public IP
  • pv_pipeline_errors_total{stage="decode|handle"} - UDP pipeline errors by stage

Gauges:

  • pv_active_peers{public_ip="..."} - Active connections per public IP

Download

https://artifacts.plasmoverse.com/projects/plasmo-voice/branches/feat%2Fmetrics

@apehum apehum force-pushed the feat/metrics branch 2 times, most recently from 3439ce2 to 04c27fa Compare March 30, 2026 13:44
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