/game-server-exporter

Prometheus exporter for game servers that support the A2S query protocol

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Game Server Exporter

A prometheus exporter for game servers that support the A2S query protocol

Build the exporter

python -m build

Install the exporter globally

sudo pip install dist/game_server_exporter-0.0.1-py3-none-any.whl

Running the exporter as a systemd service

[Unit]
Description=Game Server Exproter
After=docker.service
Requires=docker.service

[Service]
TimeoutStartSec=0
Restart=always
User=root
ExecStart=game-server-exporter --container steamcmd --address 127.0.0.1 --port 8888 --metric-name game_server --metrics-endpoint 9103

[Install]
WantedBy=multi-user.target