Skip to content

Prometheus Exporter for A2S protocol-compatible servers.

Notifications You must be signed in to change notification settings

Tanami/a2s_exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

a2s_exporter

a screenshot Prometheus Exporter for A2S protocol-compatible servers.

Dependencies

cpanm install Coro AnyEvent AnyEvent::Handle::UDP Data::Dumper::Perltidy Prometheus::Tiny

About

I wrote this tool to provide global statistics on bunnyhop game servers. It uses a very simple mechanism based on AnyEvent::Handle::UDP for submitting queries and can probably easily scale to thousands of servers.

A2S queries provide the following information:

  • Server name, tags, etc
  • Player counts, kills
  • Current map

Currently, it only tracks the number of players.

Warning!

This program has not been tidied, and may have unexpected behaviour!

TODO

  • Add a timer routine to query the masterserver list for servers with specific tags
  • Add all bunnyhop servers to the list
  • Make the lookup table mechanism a bit nicer?
  • Move the hardcoded values out into a hash
  • Add map tracking (with prometheus labels)

About

Prometheus Exporter for A2S protocol-compatible servers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages