Back to mods
FabricExporter project artwork

Modrinth · Minecraft mod

FabricExporter

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

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which FabricExporter release should I use?

Updated last month
Latest stable file 1.0.22
Game version 26.2
Loader Fabric

FabricExporter 1.0.22 targets 26.2 with Fabric. Do not install it on the client. It must be installed on the dedicated server. All 1 required mods have matching files.

Where it goes

Is FabricExporter required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked server-only.

What else does FabricExporter 1.0.22 need?

1.0.22. Change the file and its required mods may change too.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

spark Optional for FabricExporter 1.0.22
optional
No matching file
Fabric API Needed by FabricExporter 1.0.22
required
Matching file found Matched file: [26.2] Fabric API 0.156.0+26.2

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add FabricExporter without breaking your instance.

Built for FabricExporter 1.0.22. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0.22. It targets 26.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0.22. It opens that exact file at the source.

About this project

What does FabricExporter add?

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 name Description Config property Collected by
minecraft_loaded_chunks Amount of currently loaded chunks on server enable-loaded-chunks Minecraft
minecraft_total_loaded_chunks Amount of total loaded chunks on server enable-total-loaded-chunks Minecraft
minecraft_mspt Count of milliseconds per tick (MSPT) enable-mspt Spark
minecraft_tps Count of ticks per second (TPS) enable-tps Spark
minecraft_players_online Amount of currently online players on your server enable-players-online FabricExporter
minecraft_entities Amount of currently loaded entities on your server enable-entities FabricExporter
minecraft_handshakes Count of handshake requests enable-handshakes FabricExporter

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

Property Description Default value
server-port Port on what the web server will listen for requests 25585
update-interval Interval between gauge metrics updates in milliseconds 1000
use-spark If set to false, FabricExporter will be independent from Spark true

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

Project description from Modrinth.

Pick your setup

FabricExporter by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

23 available setups

Showing the newest 12 of 23 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

FabricExporter versions and loaders

25 of 25 releases match

Looking for an older file? The official Modrinth project page is in Resources.