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

OpenTelemetry Instrumentation Extension

Instrumentation for the Java OpenTelemetry Agent to include additional game telemetry

Автор: litetex1,3 тыс.5обновлён 3 окт. 2026 г.
УправлениеТехнологииУтилиты

Описание

OpenTelemetry can be used to report various monitoring data (including metrics, logs and traces) and is a de-facto industry standard.

This mod provides additional instrumentation for the OpenTelemetry JavaAgent so that various game metrics can be reported. The overall functionality is similar to fabric-exporter.

Instrumented/Reported metrics
  • MSPT/TPS
  • Loaded chunks
  • Server state
  • Networking
    • connections
    • handshakes
    • packets sent/received
  • Chunk generation
  • Entities
    • grouped by type, spawn ground and world/dimension
  • Players
    • by world
    • online
    • total xp (score)
    • xp level
  • Runtime
    • game version
    • Fabric version
  • Optional data from spark

Setup

  1. Make sure you have an endpoint where OpenTelemetry data can be ingested.
    This could be a OpenTelemetry Collector hosted by you or by someone else (e.g. in the Grafana Cloud).
  2. Setup the OpenTelemetry Java Agent so that it sends data to your ingestion service.
  3. Add the OpenTelemetry Agent Helper Extension for Fabric.
    • This is required so that the OpenTelemetry Agent is correctly detecting and utilizing the mod.
  4. Simply add and (optionally) configure this mod. It should work out of the box.
  5. Import the provided dashboard into Grafana
Diagram showcasing how the overall infrastructure can look

Infra Overview

You may also have a look at the corresponding development setup as it contains an locally running deployment of the full infrastructure.

Dashboard look

Overview Network Chunk Generation Entities Player

Example integrations

Configuration

The configuration is dynamically loaded from (sorted by highest priority)
  • Environment variables
    • prefixed with OIE_
    • all properties are in UPPERCASE and use _ instead of . or -
  • System properties
    • prefixed with oie.
  • A configuration file located in .config/oie.json
Full list of configuration options

Please note that the preconfigured values usually work out of the box.
You should know exactly what you're doing when doing modifications.

General
PropertyTypeDefaultNotes
instrumentation-nameStringminecraftUsed as instrumentationScopeName. A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.
strip-identifier-namespacesbooltrueRemoves namespaces from Identifier. Disabling this causes identifiers to look like this minecraft:overworld instead of overworld.
Usually only required for heavily modded servers.
Metrics
PropertyTypeDefaultNotes
metrics.freeze-when-server-pausedbooltrueStop fetching certain metrics when the server is paused and uses previously cached values. This optimization usually improves the sampling speed for affected metrics by >10x.
Outcomes vary and depend on the work required for fetching and how often the server enters idle mode.
If the server is not using pauseWhenEmptySeconds (set to <= 0) this optimization will be ignored.
metrics.prefixStringminecraft_Prefix for all metrics
metrics.counter-suffixString_totalSuffix for counters
metrics.enabled-onlyList<String>-Only enables the specified metrics.
ALL OTHER METRICS WILL BE DISABLED!
metrics.enabled-additionallyList<String>-Additionally enables the specified metrics.
This is only relevant for metrics that are not enabled out of the box.
metrics.disabledList<String>-Disables the specified metrics
metrics.enable-player-details-samplersbooltrueDetermines if the PlayerDetailsSamplers (e.g. Online, TotalXP, XPLevel) are enabled

Галерея

OverviewNetworkChunk GenerationEntities

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

Все версии →
release

2.2.1

2.2.1
3 окт. 2026 г.33Minecraft: 26.3fabric
Скачать
Что нового
* Fixed an error in `PlayersOnlineSampler` that could happen when players quickly joined and left the server [Full changelog](https://github.com/litetex-oss/mcm-otel-instrumentation-extension/blob/dev/CHANGELOG.md)
release

2.2.0

2.2.0
17 сент. 2026 г.89Minecraft: 26.3fabric
Скачать
Что нового
* Updated to 26.3 [Full changelog](https://github.com/litetex-oss/mcm-otel-instrumentation-extension/blob/dev/CHANGELOG.md)
release

2.1.0

2.1.0
17 июн. 2026 г.96Minecraft: 26.2fabric
Скачать
Что нового
* Updated to 26.2 [Full changelog](https://github.com/litetex-oss/mcm-otel-instrumentation-extension/blob/dev/CHANGELOG.md)
release

2.0.0

2.0.0
27 мар. 2026 г.90Minecraft: 26.1, 26.1.1, 26.1.2fabric
Скачать
Что нового
Available at https://github.com/litetex-oss/mcm-otel-instrumentation-extension/blob/dev/CHANGELOG.md
release

1.4.0

1.4.0
24 мар. 2026 г.33Minecraft: 26.1fabric
Скачать
Что нового
Available at https://github.com/litetex-oss/mcm-otel-instrumentation-extension/blob/dev/CHANGELOG.md
release

1.3.0

1.3.0
9 дек. 2025 г.103Minecraft: 1.21.11fabric
Скачать
Что нового
Available at https://github.com/litetex-oss/mcm-otel-instrumentation-extension/blob/dev/CHANGELOG.md
release

1.2.3

1.2.3
6 нояб. 2025 г.89Minecraft: 1.21.10fabric
Скачать
Что нового
Available at https://github.com/litetex-oss/mcm-otel-instrumentation-extension/blob/dev/CHANGELOG.md
release

1.2.2

1.2.2
10 окт. 2025 г.59Minecraft: 1.21.10fabric
Скачать
Что нового
Available at https://github.com/litetex-oss/mcm-otel-instrumentation-extension/blob/dev/CHANGELOG.md
release

1.2.1

1.2.1
30 сент. 2025 г.54Minecraft: 1.21.9, 1.21.10fabric
Скачать
Что нового
Available at https://github.com/litetex-oss/mcm-otel-instrumentation-extension/blob/dev/CHANGELOG.md
release

1.2.0

1.2.0
12 авг. 2025 г.86Minecraft: 1.21.8fabric
Скачать
Что нового
Available at https://github.com/litetex-oss/mcm-otel-instrumentation-extension/blob/dev/CHANGELOG.md