A Minecraft + Go + Grafana system for monitoring in-game reactors(Extreme/Bigger/Big) in real time.
- 🐢 Data pulled from ComputerCraft reactors
- 📦 HTTP API server written in Go
- 📈 Time-series data pushed to InfluxDB
- 📊 Grafana dashboard visualization
- Copy the example environment file:
cp .env.example .env
- Edit
.envto configure your InfluxDB settings(NOTE: Ensure InfluxDB endoint coresponds to what is set ingrafana/datasources/influxdb.yaml):
INFLUX_URL=http://influxdb:8086
INFLUX_TOKEN=your-token
INFLUX_ORG=your-org
INFLUX_BUCKET=your-bucket- Start the system with Docker Compose:
docker-compose up --build
- The Go API server will listen on all network interfaces on port 8080 by default.
- In-game reactor stats will be sent via HTTP POST. Set the endpoint in your ComputerCraft in the variable serverIP, default is localhost.
- The server also supports GET requests at the same endpoint to fetch the latest stats.
- Grafana will be available (as configured via docker-compose) to visualize the data stored in InfluxDB, included a simple premade dashboard.
Contributions are welcome! Please fork the repository and submit a pull request with new features or bug fixes.