A server-side Fabric mod that exports Prometheus metrics for Technical Minecraft
Features
- Zero Extra Port: Serves
GET /metricsdirectly on the Minecraft server's existing TCP port without affecting normal client connections - TMC-Focused Metrics: Exports server status, tick time costs, per-dimension stats such as chunks, entities, block entities, and scheduled ticks, as well as network traffic counters
- Mod Integration: Built-in support for Fabric Carpet, including hopper counters and mob spawning statistics
Usage
- Put the mod jar into your server's
mods/directory and start the server - Verify the metrics endpoint:
curl http://localhost:25565/metrics
- Add a scrape job to your
prometheus.yml:
scrape_configs:
- job_name: "minecraft"
metrics_path: /metrics
static_configs:
- targets: ["localhost:25565"]
License
This project is licensed under the LGPL-3.0 license