Giter Club home page Giter Club logo

unifiedmetrics's Introduction

UnifiedMetrics

License Workflow Status Maven Central Discord

UnifiedMetrics is a fully-featured free and open-source metrics collection plugin for Minecraft servers. This project is licensed under GNU LGPLv3.

Grafana Dashboard Dashboard included out-of-box! Click here for live preview!

Features

  • Platform-agnostic & compatible with popular platforms. Get the same metrics and features on any supported platform.
  • Monitor your server in real-time with Prometheus/InfluxDB and provided Grafana dashboards.
  • High performance metric collection. Low to none performance impact on the server's performance.
  • Free and open-source. The code is free and open for anyone to audit and contribute to.

Compatibility

Server:

  • 1.8+ Spigot servers (includes Spigot-based forks)
  • 1.16+ Fabric servers
  • Minestom
  • Velocity
  • BungeeCord

Metrics:

  • Prometheus
  • InfluxDB

Getting started

Read the wiki for instructions on how to get started.

Metrics

Table of metrics (click to show)
Collector Description Platform Default
systemGc Garbage collection duration and freed bytes All true
systemMemory Memory used, committed, max and init All true
systemProcess CPU load, seconds, and process start time All true
systemThread Current, daemon, started, and peak thread count All true
events Login, join, quit, chat, and ping event counter All true
server Plugins count and player counts All true
tick Tick duration histogram Bukkit, Minestom true
world World entities, players, and chunks count Bukkit, Minestom true

Special Thanks

YourKit supports open source projects with innovative and intelligent tools for monitoring and profiling Java and .NET applications. YourKit is the creator of YourKit Java Profiler, YourKit .NET Profiler, and YourKit YouMonitor.

YourKit Logo

Servers using UnifiedMetrics

Craftadia

Pssst! You can add your server here by submitting a Pull Request!

Building from source

Instructions (click to show)

Requirements:

  • JDK 8+ (16+ for Fabric, 17+ for Minestom)
  • Git (Optional)

To build UnifiedMetrics, you need to obtain the source code first. You can download the source from GitHub or use the Git CLI.

$ git clone https://github.com/Cubxity/UnifiedMetrics && cd UnifiedMetrics

Open a terminal in the cloned directory and run the following command. The following command will build all subprojects.

$ ./gradlew assemble -x signArchives

-x signArchives is required to skip signing, unless you have signing set up

To build a specific subproject, you can prefix it with the subproject path. For example:

$ ./gradlew :unifiedmetrics-platform-bukkit:assemble -x signArchives

The output artifacts can be found in subproject/build/libs.

API

Maven Central Sonatype Nexus (Snapshots)

Instructions (click to show)

Examples

Example plugins can be found under examples directory.

Gradle (Kotlin)

repositories {
    mavenCentral()
    
    // Snapshots repository (only required for -SNAPSHOT versions)
    maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
dependencies {
    // Replace this with the desired version
    compileOnly("dev.cubxity.plugins", "unifiedmetrics-api", "0.3.6") 
}

Usage

Add :unifiedmetrics-api as a dependency (compileOnly/provided). Prefer using platform's service manager if possible.

import dev.cubxity.plugins.metrics.api.UnifiedMetricsProvider

/* ... */

val api = UnifiedMetricsProvider.get()

unifiedmetrics's People

Contributors

clrxbl avatar cubxity avatar djtheredstoner avatar itsmemac avatar noahvdaa avatar portlek avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.