cpburnz / minecraft-prometheus-exporter

Prometheus exporter for Minecraft.
MIT License
44 stars 8 forks source link

Backport to 1.7.10 #15

Closed MalTeeez closed 8 months ago

MalTeeez commented 8 months ago

This PR backports Prometheus Exporter to Minecraft 1.7.10. I've tested this in a Pack with 250+ mods and some edge cases. The only issue I've encountered was UUID lookup without sending API requests to Mojang while the player to be looked up was in a different dimension, so UUID exports are disabled for now.

I've also adjusted the README for 1.7.10, since that version still uses .cfg files in config/.

Since 1.7.10 Modding is still being worked & supported by the GTNH Team I've switched out the gradle scripts with the ones from https://github.com/GTNewHorizons/ExampleMod1.7.10/

Screenshots from a test:

Screenshot 2023-12-13 at 01-32-57 Minecraft Server Stats - Dashboards - Grafana Screenshot 2023-12-13 at 01-33-33 Minecraft Server Stats - Dashboards - Grafana

MalTeeez commented 8 months ago

This should also close #13

cpburnz commented 8 months ago

Thanks for adding support for 1.7.10. Can you change your pull request to target the newly created "mc1.7.10" branch rather than the "master" branch?

cpburnz commented 8 months ago

Never mind. I just missed the option in GitHub to change the branch.