Mackerel へ以下のサーバ情報を投げる PaperMC プラグインです。
- オンラインプレイヤー数
- 1 分・5 分・15 分あたりの TPS 値
latest.log
のログレベルあたりのログ数 (SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ERROR)latest.log
のログサイズ- RAM free, total, max
- Release から最新のリリースをダウンロードし、
plugins
フォルダに配置します。 - 一度サーバを起動し、
/stop
コマンドで停止してください。 - 所属オーガニゼーション を開き、該当するオーガニゼーションの右側歯車を押し、「設定」を開きます。
- オーガニゼーションの設定画面が開いたら、中央ナビゲーションバーから「API キー」を選択します。
- 必要に応じ API キーを生成し、API キーをコピーしてください。
plugins/MackerelSpigotWatcher/config.yml
を開き、apikey: null
のnull
を先ほどコピーした API キーに置き換えます。 (例:apikey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
)- 保存し、サーバを起動してください。
- Mackerel のダッシュボードまたはホストページに
custom.msw
のメトリックが表示されていれば成功です。
custom.msw.player.*
: プレイヤーに関するメトリックcustom.msw.player.count
: オンラインプレイヤー数custom.msw.player.WORLD
: ワールドあたりのオンラインプレイヤー数 (0.0.5で追加)
custom.msw.tps.*
: TPS に関するメトリックcustom.msw.tps.1min
: 1 分当たりの TPScustom.msw.tps.5min
: 5 分当たりの TPScustom.msw.tps.15min
: 15 分当たりの TPS
custom.msw.log.*
: ログレベルあたりのログに関するメトリックcustom.msw.log.severe
: ログレベル「SEVERE
」のログ数custom.msw.log.warning
: ログレベル「WARNING
」のログ数custom.msw.log.info
: ログレベル「INFO
」のログ数custom.msw.log.config
: ログレベル「CONFIG
」のログ数custom.msw.log.fine
: ログレベル「FINE
」のログ数custom.msw.log.finest
: ログレベル「FINEST
」のログ数custom.msw.log.error
: ログレベル「ERROR
」のログ数custom.msw.log.debug
: ログレベル「DEBUG
」のログ数 (0.0.4で追加)
custom.msw.logsize
: ログファイル(./logs/latest.log
)サイズcustom.msw.memory.*
: Bukkit/Spigot(java Runtime)に割り当てられている RAM に関するメトリック (参考: Runtime クラスの Javadoc)custom.msw.memory.free
: 使用されていないメモリサイズcustom.msw.memory.used
: 使用しているメモリサイズcustom.msw.memory.total
: 割り当てられているメモリサイズcustom.msw.memory.max
: 使用を試みるメモリサイズ
custom.msw.world_*.*
: Bukkit/Spigotで動作しているワールド情報 (0.0.3で追加)custom.msw.world_loadedchunk.WORLD
: ワールドでロードされているチャンク数custom.msw.world_entitys.WORLD
: ワールドのエンティティ数custom.msw.world_tileentitys.WORLD
: ワールドのタイルエンティティ数
このプロジェクトのライセンスはMITライセンスです。
LICENSE