ruscalworld / fabric-exporter

Fabric mod that adds a Prometheus exporter with general metrics of your server
https://modrinth.com/mod/fabricexporter
MIT License
33 stars 6 forks source link

Feature Request - Add Player Names Property #10

Open DerGrumpf opened 7 months ago

DerGrumpf commented 7 months ago

Hi,

just wanna ask if you can add a Property like minecraft_player_online_names or something? Or even better tracking individual online Player times as a property

thanks love your Mod <3

ruscalworld commented 7 months ago

Hi!

Thank you for the suggestion! That's an interesting idea.

The first idea I have is to track Login Start packets to retrieve names of players connecting to the server, but it would not provide a list of online players. Handling the list of online players will be harder to implement. I think it will make sense to add an individual counter of online time for each player ever joined the server.

As soon as I have some free time, I will try to do so

Sheridan commented 5 months ago

I suggest you take the next step right away and export all player statistics as metrics:

  1. Life, armor, hunger, experience
  2. Game Mode
  3. Imposed statuses (poisoning, weakness, etc.)
  4. All statistics available on the player statistics page