跳到正文

Trace Bullet

作者:korti

Export Minecraft server metrics — TPS, player count, chunk count, and entity count — to any OTLP-compatible observability backend via OpenTelemetry.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Trace Bullet Logo

Instrument your Minecraft server with OpenTelemetry and export real-time metrics to any OTLP-compatible observability platform.

What It Does

TraceBullet runs alongside your server and continuously collects performance and gameplay metrics, exporting them via OTLP so you can visualize trends, set up alerts, and catch problems before your players notice.

Metrics Collected

| Metric | Description |
|—|—|
| TPS | Tick time histogram — see how your server performs across the full distribution, not just the average |
| Player Count | Online player count over time |
| Chunk Count | Loaded chunk count per dimension |
| Entity Count | Entity count per dimension |
| World Save Duration | Histogram of how long each world save takes per dimension |
| Scheduled Tick Queue | Pending block and fluid tick queue size per dimension — a leading indicator of lag |
| Chunk Generation | Count of newly generated chunks per dimension, distinguishing expensive generation from cheap disk loads |

Setup

  1. Drop the mod JAR into your mods/ folder (no other mods required — OpenTelemetry is bundled)
  2. Start the server once to generate the config file
  3. Set your OTLP endpoint URL and service name in the config
  4. Point your observability stack at the endpoint and start collecting

A Grafana dashboard is included in each release for a ready-to-use starting point.

Configuration

All options are available in the NeoForge mod config (tracebullet-common.toml):

  • OTLP endpoint URL
  • Service name
  • Custom resource attributes
  • Per-metric enable/disable toggles
  • Thread pool sizing

Wiki

Find a getting start guide, a list of all metrics and configuration on the wiki:

https://github.com/korti11/tracebullet/wiki

常见问题

Trace Bullet 支持哪些 Minecraft 版本?

Trace Bullet 支持 Minecraft Java 版 26.1.2,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

Trace Bullet 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分