NorthstarLauncher
NorthstarLauncher copied to clipboard
dedicated: Export prometheus metrics
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
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/
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]).
![]() |
![]() |
---|
@pg9182 is this completed/stale? (can it be closed?)
Stale.