spark

spark

95M Downloads

Exposing Prometheus metrics

znepb opened this issue ยท 0 comments

commented

Description

Prometheus is a straightforward, yet powerful tool for monitoring servers and applications. There are already multiple mods that export Prometheus metrics, (most notably Nikolay's Fabric Exporter), however, Spark is in a unique position to provide much more useful information. Implementation of Prometheus metrics would allow administrators to view key performance metrics without needing access to the server console or to be in-game.

Proposed Behaviour

A Prometheus exporter for Spark could provide some key information about the server, such as:

  • TPS
  • MSPT
  • Server CPU Usage
  • Server Memory usage
  • Entity task usage
  • Block entity tick time
  • Network stack tick usage
  • And possibly more

Extra Details

Despite how useful of a feature this would be, it is likely a niche. It also requires the server to host a web server, which presents a fair amount of security issues.