-
Notifications
You must be signed in to change notification settings - Fork 2
1. Getting started
This guide will walk you through setting up ServerPulse, including both the monitoring infrastructure (InfluxDB and Grafana) and the Minecraft plugin.
Before starting the installation, ensure you have:
- Docker and Docker Compose installed on your machine
- A Bukkit/Paper Minecraft server
- Java 21 or newer installed (required for the plugin)
- Download the latest release from GitHub or clone the repository
- Navigate to the
infra
directory in the downloaded files
-
Open a terminal in the
infra
directory -
Run the following command:
docker compose up -d
-
Wait a few moments for the containers to start
- Open
http://localhost:8086
in your web browser - Complete the initial setup:
- Create a username and password
- Set organization name to
my-org
- Create your first bucket named
metrics_db
- In InfluxDB UI, go to "Load Data" → "API Tokens"
- Click "Generate API Token" → "Custom API Token"
- Configure the token:
- Enable "Read" and "Write" permissions for the
metrics_db
bucket - Name the token something recognizable (e.g., "serverpulse-token")
- Enable "Read" and "Write" permissions for the
- Save the token - you'll need it later
-
Open
infra/grafana/provisioning/datasources/influx.yml
-
Replace
my-token
with your InfluxDB API token -
Save the file
-
Restart the Docker containers:
docker compose down docker compose up -d
- Download the latest ServerPulse plugin JAR from the releases page
- Copy the JAR file to your Minecraft server's
plugins
folder
-
Start your Minecraft server
-
The plugin will create its configuration file at
plugins/ServerPulse/config.yml
-
Stop the server
-
Edit
plugins/ServerPulse/config.yml
:metrics: enabled: true interval: 5 # Metrics collection interval in seconds influxdb: url: http://localhost:8086 # Change if InfluxDB is on different host org: my-org bucket: metrics_db token: your-token-here # Replace with your InfluxDB token table: minecraft_stats tags: server: "your-server-name" # Change this to identify your server
-
Start the server again
-
In your Minecraft server console or as an operator, run:
/serverpulse status /serverpulsevelocity status (if on Velocity)
-
You should see a message confirming connection to InfluxDB
- Open
http://localhost:3000
in your browser - Log in with default credentials (admin/admin)
- Look for the "Bed1's metrics" dashboard
- You should see metrics starting to appear
- Verify your InfluxDB token in both Grafana datasource and plugin config
- Check if InfluxDB is accessible from your Minecraft server
- Ensure the correct URL is set in plugin config
- Check if the plugin is enabled (
/serverpulse status or /serverpulsevelocity status
) - Verify the server tag in config.yml matches your dashboard queries
- Check server console for any error messages
- Verify the Docker containers are running (
docker compose ps
) - Check if the token in datasource configuration is correct
- Look for any error messages in Grafana's interface
After successful installation, you might want to:
- Configure alerts
- Customize your dashboards
- Set up permissions for your staff
If you encounter any issues not covered here look for similar issues on GitHub