PaperMC plugin that send the following server information to Mackerel.
- Number of online players
- TPS value per 1 minute, 5 minutes, 15 minutes
- Number of logs per log level of
latest.log
(SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ERROR) latest.log
log size- RAM free, total, max
- Download the latest release from Release and place it in the
plugins
folder. - Start the server once and stop it with the
/stop
command. - Open your organization and press the right gear of the relevant organization to open "Settings".
- When the organization settings page opens, select API Key from the central navigation bar.
- Generate an API key if necessary and copy the API key.
- Open
plugins/MackerelSpigotWatcher/config.yml
and replace thenull
inapikey: null
with the API key you copied earlier. (Example:apikey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
) - Save and start the server.
- You should be able to see the
custom.msw
metrics on your Mackerel dashboard or host page.
custom.msw.player.*
: Metrics for Playercustom.msw.player.count
: Number of online playerscustom.msw.player.WORLD
: Number of online players per world (Added in 0.0.5)
custom.msw.tps.*
: Metrics for TPScustom.msw.tps.1min
: TPS per minutecustom.msw.tps.5min
: TPS per 5 minutescustom.msw.tps.15min
: TPS per 15 minutes
custom.msw.log.*
: Metrics about logs per log levelcustom.msw.log.severe
: Number of logs with log levelSEVERE
custom.msw.log.warning
: Number of logs at log levelWARNING
custom.msw.log.info
: Number of logs at log levelINFO
custom.msw.log.config
: Number of logs of log levelCONFIG
custom.msw.log.fine
: Number of logs of log levelFINE
custom.msw.log.finest
: Number of logs at log levelFINEST
custom.msw.log.error
: Number of logs of log levelERROR
custom.msw.log.debug
: Number of logs of log levelDEBUG
(Added in 0.0.4)
custom.msw.logsize
: Log file (./logs/latest.log
) sizecustom.msw.memory.*
: Metrics for RAM allocated to Bukkit/Spigot (java Runtime) (Reference: Javadoc of Runtime class)custom.msw.memory.free
: Free memory sizecustom.msw.memory.used
: Used memory sizecustom.msw.memory.total
: Allocated memory sizecustom.msw.memory.max
: Memory size to try use
custom.msw.world_*.*
: World information running on Bukkit/Spigot (Added in 0.0.3)custom.msw.world_loadedchunk.WORLD
: Number of chunks loaded in the worldcustom.msw.world_entitys.WORLD
: Number of entities in the worldcustom.msw.world_tileentitys.WORLD
: Number of tile entities in the world
The license for this project is MIT License.
LICENSE