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.loglog size- RAM free, total, max
- Download the latest release from Release and place it in the
pluginsfolder. - Start the server once and stop it with the
/stopcommand. - 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.ymland replace thenullinapikey: nullwith the API key you copied earlier. (Example:apikey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) - Save and start the server.
- You should be able to see the
custom.mswmetrics 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 levelSEVEREcustom.msw.log.warning: Number of logs at log levelWARNINGcustom.msw.log.info: Number of logs at log levelINFOcustom.msw.log.config: Number of logs of log levelCONFIGcustom.msw.log.fine: Number of logs of log levelFINEcustom.msw.log.finest: Number of logs at log levelFINESTcustom.msw.log.error: Number of logs of log levelERRORcustom.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
