The Degoos Team runs a handful of Hytale servers, and we got tired of finding out about lag from players. Degoos Metrics is what we wrote for it: a small plugin that exposes a /metrics page Prometheus can scrape, so everything can be graphed in Grafana.
Out of the box you get players (per server and per world), tick times per world, JVM memory and GC, and container memory if you're on Linux/Docker. It doesn't need any other plugin.
It won't open anything until you tell it to. After the first start, edit mods/Degoos_Metrics/metrics.json, pick a port and a token (32 characters or more) and restart:
{ "bind": "0.0.0.0", "port": 9520, "token": "put-a-long-random-string-here" }
Then add the server to Prometheus with that token as a bearer token. Please don't leave the port open to the internet. On the Degoos servers it's bound to a private Docker network, but a firewall rule does the job too.
If you make plugins: you can add your own numbers to the same page (gauges, counters, summaries). There's a small bridge class that only uses Java types, so you can treat Degoos Metrics as optional and not compile against it at all. The README has the details and a copy-paste example: https://github.com/Degoos-Team/degoos-metrics
The GitHub repo also has the Pelican eggs the Degoos servers use for Prometheus and Grafana, and the Grafana dashboard for the server stats.
Made by the Degoos Team. Questions or bugs: https://github.com/Degoos-Team/degoos-metrics/issues