NorthstarLauncher icon indicating copy to clipboard operation
NorthstarLauncher copied to clipboard

dedicated: Export prometheus metrics

Open pg9182 opened this issue 2 years ago • 2 comments

The dedicated server should export metrics. I will probably work on an initial version of this in my docker image, but I may end up just directly implementing it in the launcher itself.

Some ideas for useful metrics:

  • counter northstar_instance_ticks_total
  • counter northstar_instance_uptime_seconds
  • gauge northstar_instance_info{arguments, game_port, auth_port} (more?) = 1 (maybe?)
  • gauge northstar_match_player_count
  • gauge northstar_match_player_limit
  • gauge northstar_match_info{playlist_name, map_name} = 1
  • gauge northstar_match_duration_seconds
  • histogram northstar_network_client_latency_milliseconds{uid} (maybe?)
  • counter northstar_network_receive_bytes
  • counter northstar_network_transmit_bytes
  • counter northstar_network_receive_packets
  • counter northstar_network_transmit_packets
  • guage northstar_cpu_seconds_total
  • guage northstar_memory_physical_bytes
  • guage northstar_memory_virtual_bytes

pg9182 avatar Jan 20 '22 15:01 pg9182

I should drop 2 links I saved when doing my research on this area of stuff before I gave up for that time being in hopes they'll be helpful for inspiration:

https://www.reddit.com/r/gamedev/comments/dwolyk/monitoring_serverside_ecs_application_with/

https://skylar.tech/tracking-game-server-statistics-using-node-red-influxdb-and-grafana/

p0358 avatar Jan 22 '22 12:01 p0358

Somewhat related, but relevant, so I'll note it here: I threw together a prometheus exporter for the master server and created a few dashboards (temporary links: [1] [2]).

45 79 182 79_8081_d_IO1luCanz_northstar-tf_orgId=1 from=now-2d to=now image

pg9182 avatar Feb 16 '22 18:02 pg9182

@pg9182 is this completed/stale? (can it be closed?)

ASpoonPlaysGames avatar Oct 30 '23 18:10 ASpoonPlaysGames

Stale.

pg9182 avatar Nov 01 '23 05:11 pg9182