Skip to main content

Arbitrium Sidecar Agent

ASA is the agent used to collect telemetry from within your game server. It does not require any modification to the game server itself. It will simply tap the network interface within the container to track per player stream of communication. You can also use it to monitor non-player communication. The following procedure will show you how to add this agent to your game server and onto Arbitrium.

The binary package will be sent securely by Edgegap.


  • Being Admin or ROOT in the container (since we use RAW Packet)
  • Ubuntu/Centos-based image. While this may work with other images, it still needs further testing. We can compile the agent for another release-specific OS; don’t hesitate to contact Edgegap with your requirements.
  • Optional: Have NMAP installed for Stealth TCP SYN/ACK Ping
  • Optional: “supervisord” package in your container to use as an entry point.

Step 1#

Add the binary agent file to your container. You can “ADD” or “COPY” the file in your Dockerfile. Refer to the example below if you need assistance to put the file in your container image.

The file will need execution access to execute.

Step 2#

Modify your Dockerfile to include executing the asa_agent without any arguments. Those arguments needed will be passed by Arbitrium when starting the containers through environment variables. You can see the list below for your information or if you want to test asa_agent manually. You can run it within your container to see if the agent works with “./asa_agent -vvv”. In the example below, we use “supervisord” to start our ASA agent and the game server process at the end of the Dockerfile.

Step 3#

Once you can manually execute your container image and your game servers run correctly along with the ASA agent, you can provision Arbitrium through the dashboard with your new release. Follow the steps in the dashboard section of this documentation. Make sure your application in the dashboard has the Telemetry knob set to “activated.” Once done, you can request an instance of this game server, and the telemetry tab will show in real-time players connecting to this instance.


Manual tests#

Copy the binary and start in parallel with your application.

Example of running the binary alone with console monitoring

export ASA_PORTS=25565,25575
./asa_agent -vvv


./asa_agent -vvv -p 25565 -p 25575 -d

To Start the Process without the graphical Console. remove the “-vvv”

Example of the screen you are supposed to see:

--- Arbitrium Sidecar Agent on devops ---
Active Listener On Receiving Communication TO (SERVER):
- INCOMING --> ::1
Active Listener On Incoming Communication FROM (INCOMING):
- * --> SERVER
Active Listener On PORT:
- Incoming --> *:*
Active Listener On PORT:
The Reply URL is not set - No Data will be send
The Refresh rate of Data Gathering is every 10 seconds
---- Connections ----
Player: [96:4b:48:8b:70:f5] ---> Server: [fe:0:0:0:1:1] --- )
---- Messages ----
NEW CONNECTION --> Player: [96:4b:48:8b:70:f5] ---> Server: [fe:0:0:0:1:1]

Examples (using the binary file)#

Teeworlds example#

Example of Dockerfile with Teeworlds Server and “supervisord“ (two parallel deployments)

In this example, we override the ENTRYPOINT to allow “supervisord“ to start both processes.


FROM riftbit/teeworlds #From your existing container
USER root
COPY /path/to/the/binary/file /opt/asa # Copy the binary to the path you will start with supervisord
RUN apt-get update
RUN apt-get install nmap supervisor -y
COPY images/teeworlds-python/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
CMD ["/usr/bin/supervisord","-c","/etc/supervisor/conf.d/supervisord.conf"]


command=/ start # Copy the start command of your existing container CMD or ENTRYPOINT

CSGO example#


FROM ubuntu:16.04
MAINTAINER Mathieu Duperre <>
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN rm /var/cache/debconf/* #no wories its just a cache folder
RUN apt-get update
RUN dpkg --add-architecture i386
RUN apt-get update && apt-get install -y apt-transport-https
RUN apt-get install -y --no-install-recommends apt-utils
RUN apt-get install -y lib32gcc1 libc6-i386 wget lib32stdc++6 wget nmap supervisor
RUN apt-get install -y libtinfo5:i386 libncurses5:i386 libcurl3-gnutls:i386
RUN useradd -ms /bin/bash steam
WORKDIR /home/steam
USER steam
RUN wget
RUN tar -xvzf steamcmd_linux.tar.gz
# Install CSGO once to speed up container startup
RUN ./ +login anonymous +force_install_dir ./csgo +app_update 740 validate +quit
ENV CSGO_HOSTNAME Counter-Strike Source Dedicated Server
EXPOSE 27015/udp
EXPOSE 27015
USER root
RUN mkdir /home/steam/.steam/sdk32
RUN ln -s /home/steam/csgo/bin/ /home/steam/.steam/sdk32/
USER steam
ADD ./
USER root
ADD ./asa_agent asa_agent
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN ["chmod", "775", "./asa_agent"]
RUN ["chmod", "775", "./"]
#USER steam
#CMD ./
CMD ["/usr/bin/supervisord","-c","/etc/supervisor/conf.d/supervisord.conf"]


command=/home/steam/ # Copy the start command of your existing container CMD or ENTRYPOINT

Example (using the python agent)#

Minecraft Server Running on the public IP, listening to PORT TCP/25565 and TCP/25575 for RECON

You would like to have ASA running on the server as root or admin.

# with ENV
export ASA_PORTS=25565,25575
# with Args
python -p 25565 -p 25575 -d

If you want to have ASA listening to ALL Source, ALL Destination on Port 80 every 45 seconds and replying the data back to your API https://your.api:5000/v1/example

# with ENV
export ASA_PORTS=80
export ASA_TICK_RATE=45
export ASA_REPLY_URL=https://your.api:5000/v1/example
# with Args
python -p 80 -t 45 -r https://your.api:5000/v1/example

Environment Variables#

You do not have to configure any of those variables in your container image/Docker file. When creating your application, you do not have to configure those either in Arbitrium. Those variables will be automatically created and pushed once you activate telemetry in Arbitrium for your application.

ASA_PORTS - Allow specifying the Destination Ports to Listen to, chain them with ‘commas Default: * (All Ports)

# We strongly recommend to override this one since All Ports can be a lot of Traffic

ASA_SOURCES - Allow setting the Source IP to Listen to, chain them with commas (,).
Default: * (All Sources)


ASA_DESTINATIONS - Allow to specify the Destination IP to Listen to, chain them with commas (,).


ASA_REPLY_URL - Allow specifying the Reply URL to send back the Telemetry Data to an External API.
Default: None (Disable the Sending of Data)


ASA_TICK_RATE - Allow specifying the Speed in the Seconds of the refresh.
Default: 30 seconds

# Every Minute would result in

ASA_ENABLED - Allow specifying if the Listening Server


ASA_MAX_DELAY- Timeout in seconds before dropping an inactive connection