Hello there to all of you,
I am developer, but mostly in C# and Java is on the second track. I am currently hosting a Minecraft server and I wanted to monitor its performance using Grafana with prometheus database. I have found a mod which exports almost all of required data (Players, tps, jvm status etc.) I wanted to improve the mod, to export entity count as well (Old servers often were acting strangely with high entity count in some chunk loaded factory where the machine got stuck .. etc etc)
I have tried to find a way of counting those entity, reading the Forge documentation didnt help me (Registering an event handler sounds strange to me, there must be some list of entities which I might be able to siply count). Is there some easy way of getting the count of all living entities?
(The exporter I am trying to improve : link to Github)
Thank you for the support,
Silent