screepers / screeps-launcher

Launcher for the Screeps Private Server
MIT License
129 stars 34 forks source link

Adding private grafana #14

Closed magnusesp closed 4 years ago

magnusesp commented 4 years ago

First pass of providing an easy setup for a local Grafana for a private server.

The image ags131/hosted-agent doesn't work out of the box, but I've submitted a PR that I think will solve that.

~It would be nice if you could add [https://github.com/vishnubob/wait-for-it] to your hosted-agent image @ags131 , so that the setup-stats-agent container doesn't attempt to send the config until the agent is finished starting.~ It's, of course, the curl image that needs this.

magnusesp commented 4 years ago

I've added a small container with curl, bash and the wait-for-it.sh script. As soon as the stats-agent is up, this container POST the setup.json file to the agent. I've hardcoded the agent username to be "privateserver".