Simple stats daemon for RE2 servers! #1188
Replies: 6 comments
-
Please be mindful that collecting any personal information (such as usernames) and storing them exposes you to liability under the GDPR. This is why we were forced to discontinue our own statistics database project. |
Beta Was this translation helpful? Give feedback.
-
As of now individual player names and permissions are dropped before they're put into a database. The closest thing to "user data" that I store is the number of online players, which I think is fine. |
Beta Was this translation helpful? Give feedback.
-
I'm mostly interested in seeing what maps/gamemodes are most popular, and also what impact a given number of players will have on my server. The daemon pulls player names simply because they're in the datastream that the RE2 server sends; I'll make sure I drop any personal info before it makes it to the database backends. |
Beta Was this translation helpful? Give feedback.
-
Redflare doesn't permanently store any data. |
Beta Was this translation helpful? Give feedback.
-
Ah. I suppose the easiest thing to do then is to just never log any personal info, and limit the database to server stats and not player stats. |
Beta Was this translation helpful? Give feedback.
-
If you need any info about GDPR, you can ask me, i read the most texts myself and it's pretty "easy". |
Beta Was this translation helpful? Give feedback.
-
I've created a simple stats daemon which can get stats from a RE2 server (player count, map name, game mode + modifiers, player names and privileges, etc). It can print JSON to stdout or push the results to an InfluxDB database.
Screenshot of a Grafana instance plotting data from the InfluxDB database (Bandwidth data is from my hypervisor, not this daemon):
If anyone wants to try it out or see the source code, its here: https://github.com/noahb01/re-monitor
I based some of the backend protocol code off of the Redflare source (essentially just ported it to Python3), the Redflare source is here: https://github.com/stainsby/redflare
You'll need Python3.7, python-bitstrings, and python-influxdb if you want to run this yourself. This project is nowhere near complete and I'll be adding features rather frequently.
Beta Was this translation helpful? Give feedback.
All reactions