You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
HayWo 30179504b3
add todo
3 years ago
dashboard Delete player-stats.json 3 years ago
README.md add todo 3 years ago
minecraft_exporter.py fix more typos 3 years ago
requirements.txt Bump requests from 2.5.1 to 2.20.0 3 years ago
startscript.sh change filemode 3 years ago

README.md

minecraft-exporter

this is a prometheus exporter for the vanilla minecraft server This exporter reads minecrafts nbt files, the advancements files.

setup

  • clone this repo
  • cd minecraft-exporter
  • create virtualenv virtualenv -p /usr/bin/python3 .
  • activate virtualenv source bin/activate
  • install requirements pip install -r requirements.txt
  • make startscript executable chmod +x startscript.sh
  • ad link to the world folder ln -s /path/to/world world

Usage

  • activate virtualenv source bin/activate
  • run startscript ./startscript.sh

TODO

Add more items that are exolicitly named.

Metrics

mc_items_crafted_total
mc_items_broken_total
mc_items_mined_total
mc_chests_opened_total
mc_damage_dealt_total
mc_damage_taken_total
mc_time_since_rest_total
mc_sleeped_bed_total
mc_minutes_played_total
mc_interaction_with_furnace_total
mc_jumps_total
mc_time_sneaked_total
mc_deaths_total
mc_drops_total
mc_time_since_death_total
mc_left_game_total
mc_craftingtable_used_total
mc_animals_bred_total
mc_kills_total
mc_killed_by_total
mc_items_used
mc_pickedup_items_total
mc_kills_absolute_total
mc_dropped_items_total
mc_cm_traveled_total
mc_xp_total_total
mc_current_level
mc_food_level
mc_health_total
mc_score_total
mc_advancements_total

Dashboards

In the folder dashboards you'll find grafana dashboards for these metrics, they are however incomplete and can be expanded