screepsmod-statsd
v1.0.2
Published
This mod will fire all the stats of all users to your StatsD server.
Downloads
1
Readme
screepsmod-statsd
This mod will fire all the stats of all users to your StatsD server.
Installation
- Go to your Screeps server directory and execute
npm install screepsmod-statsd
- Make sure, that the file
mods.json
contains the entry"node_modules/screepsmod-statsd/index.js"
; - Restart the Screeps server
Configuration
If you need to override the defaults, add the values you need to the .screepsrc
file.
Available Settings:
host
: The host to send stats to default:localhost
port
: The port to send stats to default:8125
Example:
[statsd]
host=localhost
port=8125
Usage
- The GCL of all users will be added automatically to the stats
- To add values to your stats, you need to do it like this:
if(!Memory.stats) Memory.stats = {}; Memory.stats['tick'] = Game.time; Memory.stats['cpu.limit'] = Game.cpu.limit;