- Docker-Compose
- Node (any version)
- Clone this repository
- Run
npm install
to install dependencies
- Copy
.env.example
to.env
and edit to match your needs. - Copy
users.example.json
tousers.json
and edit it according to User Setup. - The configuration files for both Grafana and Graphite are in
config/grafana
andconfig/graphite
respectively. - If you have a dashboard you want to auto-add, you can drop their JSON files into
config/grafana/provisioning/dashboards
and they'll be auto-added to the instance.
npm run start
: start the containersnpm run logs
: check the container's logsnpm run stop
: stop the containersnpm run reset
: remove the containersnpm run reset:hard
: remove the containers and their volumesnpm run rebuild
: rebuild the pushStats container and restart it; needed if you make changes to its code.
See the scripts section in the package.json file.
Go to localhost:3000 (if you used port 3000) and login with admin
and password
(or your custom set login info).
Its possible to use https for your grafana instance, check out this tutorial for example on how to do this, enough info online about it. I dont support this (yet)
- Remove all users from the setup
- Add users in the following format:
A. MMO:
{
# Prefix is entirely optional
"prefix": "a.b.c",
"username": "PandaMaster",
"type": "mmo",
"shards": ["shard0"],
"token": "TOKEN_FOR_THIS_USER!",
}
B. Private:
{
# Prefix is entirely optional
"prefix": "a.b.c",
"username": "EMAIL",
# If your email has a period in it, grafana displays it incorrectly
# Its reccomended to change this to the username you set for MMO.
"replaceName": "USERNAME HERE",
"type": "private",
"shards": ["screeps"],
"password": "password",
}
If the private server is not hosted on localhost, add the host to the user:
{
"username": "EMAIL",
"replaceName": "USERNAME",
"type": "private",
"shards": ["screeps"],
"password": "password",
"host": "192.168.1.10",
"port": 21025,
}
If the segment of the stats is not memory, add it to the user:
{
"username": "W1N1",
"type": "private",
"shards": ["screeps"],
"password": "password",
"host": "123.456.789",
"segment": 0,
}