COWMODSКаталог модов

FabricExporter

Fabric mod that adds a Prometheus exporter with general metrics of your server

Автор: ruscalworld45,9 тыс.68обновлён 30 окт. 2026 г.
Утилиты

Описание

FabricExporter

Fabric mod that adds a Prometheus exporter with general metrics of your server.

Grafana Dashboard


It's a server-side mod that exposes metrics of your Fabric server in Prometheus format. So, it requires you to have at least Prometheus installed to collect provided metrics. I recommend also using Grafana to visualize data.

If you want to get TPS and MSPT metrics, you should also install Spark as mod for your Fabric server.

Exposed metrics

Here is a list of metrics that are collected by FabricExporter.

  • Metrics collected by Minecraft doesn't require anything, but may cause errors when running on old Minecraft versions
  • Metrics collected by Spark require Spark to be installed

You can disable any of these metrics in config.

Prometheus nameDescriptionConfig propertyCollected by
minecraft_loaded_chunksAmount of currently loaded chunks on serverenable-loaded-chunksMinecraft
minecraft_total_loaded_chunksAmount of total loaded chunks on serverenable-total-loaded-chunksMinecraft
minecraft_msptCount of milliseconds per tick (MSPT)enable-msptSpark
minecraft_tpsCount of ticks per second (TPS)enable-tpsSpark
minecraft_players_onlineAmount of currently online players on your serverenable-players-onlineFabricExporter
minecraft_entitiesAmount of currently loaded entities on your serverenable-entitiesFabricExporter
minecraft_handshakesCount of handshake requestsenable-handshakesFabricExporter

Getting started

To use this mod you should have at least Fabric server and Prometheus installed.

Installing mod

  1. Download the mod from Releases page.
  2. Drop downloaded mod jar to the mods folder.
  3. Start your server to generate config file.
  4. Open config/exporter.properties, ensure that server-port value is an open port that can be accessed by your Prometheus and change it if required.
  5. Restart the server if you made changes in config.

Configuring Prometheus

  1. Open your Prometheus config file (it located at /etc/prometheus/prometheus.yml by default).
sudo nano /etc/prometheus/prometheus.yml
  1. Add FabricExporter endpoint to the scrape_configs section. Don't forget to replace 127.0.0.1 with address of your server and 25585 with port specified in server-port property in exporter.properties file.
- job_name: 'fabric'
  static_configs:
    - targets: ['127.0.0.1:25585']
  1. Restart Prometheus service.
sudo service prometheus restart

Importing Grafana dashboard

If you want to use Grafana, you can use my dashboard as template. I assume that you have already created a Prometheus data source in Grafana. So, let's import dashboard for FabricExporter.

  1. Log in to your Grafana and go to Create -> Import tab.
  2. Type 14492 in "Import via grafana.com" field and click "Load".
  3. On the next page change settings as you wish and click "Import".

Configuring

After your server starts, FabricExporter will create exporter.properties file in the config folder. You should use this file to configure the mod. In this file you can see some general settings and metrics settings.

General settings

PropertyDescriptionDefault value
server-portPort on what the web server will listen for requests25585
update-intervalInterval between gauge metrics updates in milliseconds1000
use-sparkIf set to false, FabricExporter will be independent from Sparktrue

Metrics settings

You can disable any metric that registered via MetricRegistry (all metrics by default) using exporter.properties file. Names of properties consist of enable and metric name without prefix and _ replaced with -. For example, if you want to disable minecraft_players_online, you should set enable-players-online to false. You can also see list of available properties in "Exposed metrics" section. If you can't find property for some metrics, you can manually add it. All metrics are enabled by default.

License

MIT license. Read more in LICENSE

Последние версии

Все версии →
release

1.0.23 for Minecraft 26.3

1.0.23+26.3
30 окт. 2026 г.122Minecraft: 26.3fabric
Скачать
Что нового
- Improve Modrinth publish workflow - Bump version - update to 26.3 - Clear per-world gauges before each update to drop stale dimension series
release

1.0.22

1.0.22
21 июн. 2026 г.5,2 тыс.Minecraft: 26.2fabric
Скачать
Что нового
No changelog was specified.
release

1.0.21

1.0.21
31 мар. 2026 г.4,2 тыс.Minecraft: 26.1fabric
Скачать
Что нового
No changelog was specified.
release

1.0.20

1.0.20
23 дек. 2025 г.8,5 тыс.Minecraft: 1.21.11fabric
Скачать
Что нового
No changelog was specified.
release

1.0.19

1.0.19
24 окт. 2025 г.6,7 тыс.Minecraft: 1.21.10fabric
Скачать
Что нового
No changelog was specified.
release

1.0.18

1.0.18
24 окт. 2025 г.106Minecraft: 1.21.9fabric
Скачать
Что нового
No changelog was specified.
release

1.0.17

1.0.17
15 авг. 2025 г.6,8 тыс.Minecraft: 1.21.8fabric
Скачать
Что нового
No changelog was specified.
release

1.0.16

1.0.16
2 июл. 2025 г.257Minecraft: 1.21.7fabric
Скачать
Что нового
No changelog was specified.
release

1.0.15

1.0.15
24 июн. 2025 г.173Minecraft: 1.21.6fabric
Скачать
Что нового
No changelog was specified.
release

1.0.14

1.0.14
1 апр. 2025 г.776Minecraft: 1.21.5fabric
Скачать
Что нового
No changelog was specified.