From 81fee1a0dc8fa56ac9ba137a3884ef92a37f36e2 Mon Sep 17 00:00:00 2001 From: cpburnz <2126043+cpburnz@users.noreply.github.com> Date: Mon, 19 Aug 2024 22:43:29 -0400 Subject: [PATCH] Release v1.2.1 for MC 1.21.1 Forge --- CHANGES.md | 8 +- README.md | 9 +- build.gradle | 2 +- examples/output.txt | 322 +++++++++++------------ examples/prometheus_exporter-server.toml | 5 +- gradle.properties | 15 +- src/main/resources/pack.mcmeta | 2 +- 7 files changed, 182 insertions(+), 181 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 8c2031b..a843979 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,19 +2,19 @@ Change History ============== -1.2.1 for Minecraft 1.20.6 with Forge 50.1.0 (2024-08-19) +1.2.1 for Minecraft 1.21.1 with Forge 52.0.0 (2024-08-19) --------------------------------------------------------- New features: -- Support MC 1.20.6. +- Support Minecraft 1.21.1. Bug fixes: - Prevent possible crash on bad start-up. -1.2.0 for Minecraft 1.20.6 with Forge 50.1.0 (Unreleased) +1.2.0 for Minecraft 1.21.1 with Forge 52.0.0 (Unreleased) --------------------------------------------------------- New features: @@ -32,7 +32,7 @@ Miscellaneous: - Minor documentation. -1.1.0 for Minecraft 1.20.6 with Forge 50.1.0 (Unreleased) +1.1.0 for Minecraft 1.21.1 with Forge 52.0.0 (Unreleased) --------------------------------------------------------- New features: diff --git a/README.md b/README.md index 50f5217..e5c411b 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ systems monitoring toolkit, [Prometheus]. The mod is intended for server-side use, and does not need to be installed client-side. This currently has builds for the following versions: +- Minecraft 1.21.1 with Forge 52.0.0. - Minecraft 1.20.6 with Forge 50.1.0. - Minecraft 1.20.4 with Forge 49.1.0. - Minecraft 1.20.2 with Forge 48.1.0. @@ -58,8 +59,8 @@ Known compatible Grafana dashboards are listed in [dashboards.md]. [Curse Forge]: https://www.curseforge.com/minecraft/mc-mods/prometheus-exporter [GitHub]: https://github.com/cpburnz/minecraft-prometheus-exporter/releases [Prometheus]: https://prometheus.io/ -[dashboards.md]: https://github.com/cpburnz/minecraft-prometheus-exporter/blob/mc1.20.6-forge/dashboards.md +[dashboards.md]: https://github.com/cpburnz/minecraft-prometheus-exporter/blob/mc1.21.1-forge/dashboards.md [issue on GitHub]: https://github.com/cpburnz/minecraft-prometheus-exporter/issues -[metrics.md]: https://github.com/cpburnz/minecraft-prometheus-exporter/blob/mc1.20.6-forge/metrics.md -[output.txt]: https://github.com/cpburnz/minecraft-prometheus-exporter/blob/mc1.20.6-forge/examples/output.txt -[prometheus_exporter-server.toml]: https://github.com/cpburnz/minecraft-prometheus-exporter/blob/mc1.20.6-forge/examples/prometheus_exporter-server.toml +[metrics.md]: https://github.com/cpburnz/minecraft-prometheus-exporter/blob/mc1.21.1-forge/metrics.md +[output.txt]: https://github.com/cpburnz/minecraft-prometheus-exporter/blob/mc1.21.1-forge/examples/output.txt +[prometheus_exporter-server.toml]: https://github.com/cpburnz/minecraft-prometheus-exporter/blob/mc1.21.1-forge/examples/prometheus_exporter-server.toml diff --git a/build.gradle b/build.gradle index b9adf16..1df4071 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { id 'idea' // Forge Gradle plugin (required). - id 'net.minecraftforge.gradle' version '[6.0.16,6.2)' + id 'net.minecraftforge.gradle' version '[6.0.24,6.2)' // Shadow Jar plugin: bundle dependencies. id 'com.gradleup.shadow' version '8.3.0' diff --git a/examples/output.txt b/examples/output.txt index 8a3952a..aa81b53 100644 --- a/examples/output.txt +++ b/examples/output.txt @@ -1,33 +1,18 @@ -# HELP jvm_memory_pool_allocated_bytes_total Total bytes allocated in a given JVM memory pool. Only updated after GC, not continuously. -# TYPE jvm_memory_pool_allocated_bytes_total counter -jvm_memory_pool_allocated_bytes_total{pool="CodeHeap 'profiled nmethods'",} 4.096448E7 -jvm_memory_pool_allocated_bytes_total{pool="G1 Old Gen",} 5.66724816E8 -jvm_memory_pool_allocated_bytes_total{pool="G1 Eden Space",} 2.000683008E9 -jvm_memory_pool_allocated_bytes_total{pool="CodeHeap 'non-profiled nmethods'",} 2.0061056E7 -jvm_memory_pool_allocated_bytes_total{pool="G1 Survivor Space",} 1.2822472E8 -jvm_memory_pool_allocated_bytes_total{pool="Compressed Class Space",} 1.9864856E7 -jvm_memory_pool_allocated_bytes_total{pool="Metaspace",} 1.3605576E8 -jvm_memory_pool_allocated_bytes_total{pool="CodeHeap 'non-nmethods'",} 4133248.0 -# HELP jvm_gc_collection_seconds Time spent in a given JVM garbage collector in seconds. -# TYPE jvm_gc_collection_seconds summary -jvm_gc_collection_seconds_count{gc="G1 Young Generation",} 34.0 -jvm_gc_collection_seconds_sum{gc="G1 Young Generation",} 0.527 -jvm_gc_collection_seconds_count{gc="G1 Concurrent GC",} 14.0 -jvm_gc_collection_seconds_sum{gc="G1 Concurrent GC",} 0.047 -jvm_gc_collection_seconds_count{gc="G1 Old Generation",} 0.0 -jvm_gc_collection_seconds_sum{gc="G1 Old Generation",} 0.0 +# HELP jvm_info VM version info +# TYPE jvm_info gauge +jvm_info{runtime="OpenJDK Runtime Environment",vendor="Arch Linux",version="21.0.4+7",} 1.0 # HELP jvm_threads_current Current thread count of a JVM # TYPE jvm_threads_current gauge -jvm_threads_current 39.0 +jvm_threads_current 37.0 # HELP jvm_threads_daemon Daemon thread count of a JVM # TYPE jvm_threads_daemon gauge -jvm_threads_daemon 31.0 +jvm_threads_daemon 30.0 # HELP jvm_threads_peak Peak thread count of a JVM # TYPE jvm_threads_peak gauge -jvm_threads_peak 42.0 +jvm_threads_peak 40.0 # HELP jvm_threads_started_total Started thread count of a JVM # TYPE jvm_threads_started_total counter -jvm_threads_started_total 58.0 +jvm_threads_started_total 55.0 # HELP jvm_threads_deadlocked Cycles of JVM-threads that are in deadlock waiting to acquire object monitors or ownable synchronizers # TYPE jvm_threads_deadlocked gauge jvm_threads_deadlocked 0.0 @@ -38,106 +23,41 @@ jvm_threads_deadlocked_monitor 0.0 # TYPE jvm_threads_state gauge jvm_threads_state{state="NEW",} 0.0 jvm_threads_state{state="TERMINATED",} 0.0 -jvm_threads_state{state="RUNNABLE",} 10.0 +jvm_threads_state{state="RUNNABLE",} 13.0 jvm_threads_state{state="BLOCKED",} 0.0 -jvm_threads_state{state="WAITING",} 12.0 -jvm_threads_state{state="TIMED_WAITING",} 17.0 +jvm_threads_state{state="WAITING",} 11.0 +jvm_threads_state{state="TIMED_WAITING",} 13.0 jvm_threads_state{state="UNKNOWN",} 0.0 -# HELP jvm_buffer_pool_used_bytes Used bytes of a given JVM buffer pool. -# TYPE jvm_buffer_pool_used_bytes gauge -jvm_buffer_pool_used_bytes{pool="mapped",} 0.0 -jvm_buffer_pool_used_bytes{pool="direct",} 1.1177924E7 -jvm_buffer_pool_used_bytes{pool="mapped - 'non-volatile memory'",} 0.0 -# HELP jvm_buffer_pool_capacity_bytes Bytes capacity of a given JVM buffer pool. -# TYPE jvm_buffer_pool_capacity_bytes gauge -jvm_buffer_pool_capacity_bytes{pool="mapped",} 0.0 -jvm_buffer_pool_capacity_bytes{pool="direct",} 1.1177923E7 -jvm_buffer_pool_capacity_bytes{pool="mapped - 'non-volatile memory'",} 0.0 -# HELP jvm_buffer_pool_used_buffers Used buffers of a given JVM buffer pool. -# TYPE jvm_buffer_pool_used_buffers gauge -jvm_buffer_pool_used_buffers{pool="mapped",} 0.0 -jvm_buffer_pool_used_buffers{pool="direct",} 60.0 -jvm_buffer_pool_used_buffers{pool="mapped - 'non-volatile memory'",} 0.0 -# HELP mc_player_list The players connected to the server. -# TYPE mc_player_list gauge -mc_player_list{id="380df991-f603-344c-a090-369bad2a924a",name="Dev",} 1.0 -# HELP mc_entities_total The number of entities in each dimension by type. -# TYPE mc_entities_total gauge -mc_entities_total{dim="overworld",dim_id="0",type="Bat",} 17.0 -mc_entities_total{dim="overworld",dim_id="0",type="Skeleton",} 31.0 -mc_entities_total{dim="overworld",dim_id="0",type="Glow Squid",} 6.0 -mc_entities_total{dim="overworld",dim_id="0",type="Horse",} 3.0 -mc_entities_total{dim="overworld",dim_id="0",type="Squid",} 8.0 -mc_entities_total{dim="overworld",dim_id="0",type="Enderman",} 1.0 -mc_entities_total{dim="overworld",dim_id="0",type="Spider",} 6.0 -mc_entities_total{dim="overworld",dim_id="0",type="Sheep",} 3.0 -mc_entities_total{dim="overworld",dim_id="0",type="Zombie",} 7.0 -mc_entities_total{dim="overworld",dim_id="0",type="Salmon",} 1.0 -mc_entities_total{dim="overworld",dim_id="0",type="Bee",} 1.0 -mc_entities_total{dim="overworld",dim_id="0",type="Chicken",} 4.0 -mc_entities_total{dim="overworld",dim_id="0",type="Creeper",} 29.0 -mc_entities_total{dim="overworld",dim_id="0",type="Rabbit",} 5.0 -mc_entities_total{dim="overworld",dim_id="0",type="Pig",} 5.0 -# HELP mc_server_tick_seconds Stats on server tick times. -# TYPE mc_server_tick_seconds histogram -mc_server_tick_seconds_bucket{le="0.01",} 2.0 -mc_server_tick_seconds_bucket{le="0.025",} 13.0 -mc_server_tick_seconds_bucket{le="0.05",} 24.0 -mc_server_tick_seconds_bucket{le="0.1",} 28.0 -mc_server_tick_seconds_bucket{le="0.25",} 29.0 -mc_server_tick_seconds_bucket{le="0.5",} 29.0 -mc_server_tick_seconds_bucket{le="1.0",} 29.0 -mc_server_tick_seconds_bucket{le="+Inf",} 29.0 -mc_server_tick_seconds_count 29.0 -mc_server_tick_seconds_sum 0.9615160350000002 -# HELP mc_dimension_chunks_loaded The number of loaded dimension chunks. -# TYPE mc_dimension_chunks_loaded gauge -mc_dimension_chunks_loaded{id="0",name="overworld",} 2809.0 -mc_dimension_chunks_loaded{id="1",name="the_end",} 0.0 -mc_dimension_chunks_loaded{id="-1",name="the_nether",} 0.0 -# HELP mc_dimension_tick_seconds Stats on dimension tick times. -# TYPE mc_dimension_tick_seconds histogram -mc_dimension_tick_seconds_bucket{id="-1",name="the_nether",le="0.01",} 29.0 -mc_dimension_tick_seconds_bucket{id="-1",name="the_nether",le="0.025",} 29.0 -mc_dimension_tick_seconds_bucket{id="-1",name="the_nether",le="0.05",} 29.0 -mc_dimension_tick_seconds_bucket{id="-1",name="the_nether",le="0.1",} 29.0 -mc_dimension_tick_seconds_bucket{id="-1",name="the_nether",le="0.25",} 29.0 -mc_dimension_tick_seconds_bucket{id="-1",name="the_nether",le="0.5",} 29.0 -mc_dimension_tick_seconds_bucket{id="-1",name="the_nether",le="1.0",} 29.0 -mc_dimension_tick_seconds_bucket{id="-1",name="the_nether",le="+Inf",} 29.0 -mc_dimension_tick_seconds_count{id="-1",name="the_nether",} 29.0 -mc_dimension_tick_seconds_sum{id="-1",name="the_nether",} 0.0017392450000000002 -mc_dimension_tick_seconds_bucket{id="0",name="overworld",le="0.01",} 2.0 -mc_dimension_tick_seconds_bucket{id="0",name="overworld",le="0.025",} 13.0 -mc_dimension_tick_seconds_bucket{id="0",name="overworld",le="0.05",} 25.0 -mc_dimension_tick_seconds_bucket{id="0",name="overworld",le="0.1",} 28.0 -mc_dimension_tick_seconds_bucket{id="0",name="overworld",le="0.25",} 29.0 -mc_dimension_tick_seconds_bucket{id="0",name="overworld",le="0.5",} 29.0 -mc_dimension_tick_seconds_bucket{id="0",name="overworld",le="1.0",} 29.0 -mc_dimension_tick_seconds_bucket{id="0",name="overworld",le="+Inf",} 29.0 -mc_dimension_tick_seconds_count{id="0",name="overworld",} 29.0 -mc_dimension_tick_seconds_sum{id="0",name="overworld",} 0.8917029310000001 -mc_dimension_tick_seconds_bucket{id="1",name="the_end",le="0.01",} 29.0 -mc_dimension_tick_seconds_bucket{id="1",name="the_end",le="0.025",} 29.0 -mc_dimension_tick_seconds_bucket{id="1",name="the_end",le="0.05",} 29.0 -mc_dimension_tick_seconds_bucket{id="1",name="the_end",le="0.1",} 29.0 -mc_dimension_tick_seconds_bucket{id="1",name="the_end",le="0.25",} 29.0 -mc_dimension_tick_seconds_bucket{id="1",name="the_end",le="0.5",} 29.0 -mc_dimension_tick_seconds_bucket{id="1",name="the_end",le="1.0",} 29.0 -mc_dimension_tick_seconds_bucket{id="1",name="the_end",le="+Inf",} 29.0 -mc_dimension_tick_seconds_count{id="1",name="the_end",} 29.0 -mc_dimension_tick_seconds_sum{id="1",name="the_end",} 0.007150987000000001 +# HELP jvm_memory_pool_allocated_bytes_total Total bytes allocated in a given JVM memory pool. Only updated after GC, not continuously. +# TYPE jvm_memory_pool_allocated_bytes_total counter +jvm_memory_pool_allocated_bytes_total{pool="CodeHeap 'profiled nmethods'",} 3.6362624E7 +jvm_memory_pool_allocated_bytes_total{pool="G1 Old Gen",} 4.78535032E8 +jvm_memory_pool_allocated_bytes_total{pool="G1 Eden Space",} 4.391436288E9 +jvm_memory_pool_allocated_bytes_total{pool="CodeHeap 'non-profiled nmethods'",} 2.2636032E7 +jvm_memory_pool_allocated_bytes_total{pool="G1 Survivor Space",} 1.09039872E8 +jvm_memory_pool_allocated_bytes_total{pool="Compressed Class Space",} 2.016412E7 +jvm_memory_pool_allocated_bytes_total{pool="Metaspace",} 1.37973928E8 +jvm_memory_pool_allocated_bytes_total{pool="CodeHeap 'non-nmethods'",} 4206592.0 +# HELP jvm_classes_currently_loaded The number of classes that are currently loaded in the JVM +# TYPE jvm_classes_currently_loaded gauge +jvm_classes_currently_loaded 30019.0 +# HELP jvm_classes_loaded_total The total number of classes that have been loaded since the JVM has started execution +# TYPE jvm_classes_loaded_total counter +jvm_classes_loaded_total 30031.0 +# HELP jvm_classes_unloaded_total The total number of classes that have been unloaded since the JVM has started execution +# TYPE jvm_classes_unloaded_total counter +jvm_classes_unloaded_total 12.0 # HELP jvm_memory_objects_pending_finalization The number of objects waiting in the finalizer queue. # TYPE jvm_memory_objects_pending_finalization gauge jvm_memory_objects_pending_finalization 0.0 # HELP jvm_memory_bytes_used Used bytes of a given JVM memory area. # TYPE jvm_memory_bytes_used gauge -jvm_memory_bytes_used{area="heap",} 8.08979408E8 -jvm_memory_bytes_used{area="nonheap",} 2.04213544E8 +jvm_memory_bytes_used{area="heap",} 6.1648388E8 +jvm_memory_bytes_used{area="nonheap",} 1.9917472E8 # HELP jvm_memory_bytes_committed Committed (bytes) of a given JVM memory area. # TYPE jvm_memory_bytes_committed gauge -jvm_memory_bytes_committed{area="heap",} 1.136656384E9 -jvm_memory_bytes_committed{area="nonheap",} 2.1823488E8 +jvm_memory_bytes_committed{area="heap",} 1.203765248E9 +jvm_memory_bytes_committed{area="nonheap",} 2.1987328E8 # HELP jvm_memory_bytes_max Max (bytes) of a given JVM memory area. # TYPE jvm_memory_bytes_max gauge jvm_memory_bytes_max{area="heap",} 8.376025088E9 @@ -148,24 +68,24 @@ jvm_memory_bytes_init{area="heap",} 5.24288E8 jvm_memory_bytes_init{area="nonheap",} 7667712.0 # HELP jvm_memory_pool_bytes_used Used bytes of a given JVM memory pool. # TYPE jvm_memory_pool_bytes_used gauge -jvm_memory_pool_bytes_used{pool="CodeHeap 'non-nmethods'",} 4145152.0 -jvm_memory_pool_bytes_used{pool="Metaspace",} 1.36053264E8 -jvm_memory_pool_bytes_used{pool="CodeHeap 'profiled nmethods'",} 2.7865216E7 -jvm_memory_pool_bytes_used{pool="Compressed Class Space",} 1.986332E7 -jvm_memory_pool_bytes_used{pool="G1 Eden Space",} 2.39075328E8 -jvm_memory_pool_bytes_used{pool="G1 Old Gen",} 5.54141904E8 -jvm_memory_pool_bytes_used{pool="G1 Survivor Space",} 1.5762176E7 -jvm_memory_pool_bytes_used{pool="CodeHeap 'non-profiled nmethods'",} 1.6288128E7 +jvm_memory_pool_bytes_used{pool="CodeHeap 'non-nmethods'",} 4206592.0 +jvm_memory_pool_bytes_used{pool="Metaspace",} 1.38159336E8 +jvm_memory_pool_bytes_used{pool="CodeHeap 'profiled nmethods'",} 2.1535616E7 +jvm_memory_pool_bytes_used{pool="Compressed Class Space",} 2.0187352E7 +jvm_memory_pool_bytes_used{pool="G1 Eden Space",} 9.2274688E7 +jvm_memory_pool_bytes_used{pool="G1 Old Gen",} 4.74701432E8 +jvm_memory_pool_bytes_used{pool="G1 Survivor Space",} 4.950776E7 +jvm_memory_pool_bytes_used{pool="CodeHeap 'non-profiled nmethods'",} 1.5085824E7 # HELP jvm_memory_pool_bytes_committed Committed bytes of a given JVM memory pool. # TYPE jvm_memory_pool_bytes_committed gauge -jvm_memory_pool_bytes_committed{pool="CodeHeap 'non-nmethods'",} 4325376.0 -jvm_memory_pool_bytes_committed{pool="Metaspace",} 1.3795328E8 -jvm_memory_pool_bytes_committed{pool="CodeHeap 'profiled nmethods'",} 3.6569088E7 -jvm_memory_pool_bytes_committed{pool="Compressed Class Space",} 2.0709376E7 -jvm_memory_pool_bytes_committed{pool="G1 Eden Space",} 4.6137344E8 -jvm_memory_pool_bytes_committed{pool="G1 Old Gen",} 6.58505728E8 -jvm_memory_pool_bytes_committed{pool="G1 Survivor Space",} 1.6777216E7 -jvm_memory_pool_bytes_committed{pool="CodeHeap 'non-profiled nmethods'",} 1.867776E7 +jvm_memory_pool_bytes_committed{pool="CodeHeap 'non-nmethods'",} 4390912.0 +jvm_memory_pool_bytes_committed{pool="Metaspace",} 1.40115968E8 +jvm_memory_pool_bytes_committed{pool="CodeHeap 'profiled nmethods'",} 3.3816576E7 +jvm_memory_pool_bytes_committed{pool="Compressed Class Space",} 2.1037056E7 +jvm_memory_pool_bytes_committed{pool="G1 Eden Space",} 5.95591168E8 +jvm_memory_pool_bytes_committed{pool="G1 Old Gen",} 5.57842432E8 +jvm_memory_pool_bytes_committed{pool="G1 Survivor Space",} 5.0331648E7 +jvm_memory_pool_bytes_committed{pool="CodeHeap 'non-profiled nmethods'",} 2.0512768E7 # HELP jvm_memory_pool_bytes_max Max bytes of a given JVM memory pool. # TYPE jvm_memory_pool_bytes_max gauge jvm_memory_pool_bytes_max{pool="CodeHeap 'non-nmethods'",} 5840896.0 @@ -189,13 +109,13 @@ jvm_memory_pool_bytes_init{pool="CodeHeap 'non-profiled nmethods'",} 2555904.0 # HELP jvm_memory_pool_collection_used_bytes Used bytes after last collection of a given JVM memory pool. # TYPE jvm_memory_pool_collection_used_bytes gauge jvm_memory_pool_collection_used_bytes{pool="G1 Eden Space",} 0.0 -jvm_memory_pool_collection_used_bytes{pool="G1 Old Gen",} 5.54141904E8 -jvm_memory_pool_collection_used_bytes{pool="G1 Survivor Space",} 1.5762176E7 +jvm_memory_pool_collection_used_bytes{pool="G1 Old Gen",} 4.74701432E8 +jvm_memory_pool_collection_used_bytes{pool="G1 Survivor Space",} 4.950776E7 # HELP jvm_memory_pool_collection_committed_bytes Committed after last collection bytes of a given JVM memory pool. # TYPE jvm_memory_pool_collection_committed_bytes gauge -jvm_memory_pool_collection_committed_bytes{pool="G1 Eden Space",} 4.6137344E8 -jvm_memory_pool_collection_committed_bytes{pool="G1 Old Gen",} 6.58505728E8 -jvm_memory_pool_collection_committed_bytes{pool="G1 Survivor Space",} 1.6777216E7 +jvm_memory_pool_collection_committed_bytes{pool="G1 Eden Space",} 5.95591168E8 +jvm_memory_pool_collection_committed_bytes{pool="G1 Old Gen",} 5.57842432E8 +jvm_memory_pool_collection_committed_bytes{pool="G1 Survivor Space",} 5.0331648E7 # HELP jvm_memory_pool_collection_max_bytes Max bytes after last collection of a given JVM memory pool. # TYPE jvm_memory_pool_collection_max_bytes gauge jvm_memory_pool_collection_max_bytes{pool="G1 Eden Space",} -1.0 @@ -206,51 +126,127 @@ jvm_memory_pool_collection_max_bytes{pool="G1 Survivor Space",} -1.0 jvm_memory_pool_collection_init_bytes{pool="G1 Eden Space",} 2.5165824E7 jvm_memory_pool_collection_init_bytes{pool="G1 Old Gen",} 4.99122176E8 jvm_memory_pool_collection_init_bytes{pool="G1 Survivor Space",} 0.0 -# HELP jvm_classes_currently_loaded The number of classes that are currently loaded in the JVM -# TYPE jvm_classes_currently_loaded gauge -jvm_classes_currently_loaded 29515.0 -# HELP jvm_classes_loaded_total The total number of classes that have been loaded since the JVM has started execution -# TYPE jvm_classes_loaded_total counter -jvm_classes_loaded_total 29518.0 -# HELP jvm_classes_unloaded_total The total number of classes that have been unloaded since the JVM has started execution -# TYPE jvm_classes_unloaded_total counter -jvm_classes_unloaded_total 3.0 -# HELP jvm_info VM version info -# TYPE jvm_info gauge -jvm_info{runtime="OpenJDK Runtime Environment",vendor="Arch Linux",version="21.0.4+7",} 1.0 +# HELP mc_player_list The players connected to the server. +# TYPE mc_player_list gauge +mc_player_list{id="380df991-f603-344c-a090-369bad2a924a",name="Dev",} 1.0 +# HELP mc_entities_total The number of entities in each dimension by type. +# TYPE mc_entities_total gauge +mc_entities_total{dim="overworld",dim_id="0",type="Bat",} 15.0 +mc_entities_total{dim="overworld",dim_id="0",type="Zombie",} 9.0 +mc_entities_total{dim="overworld",dim_id="0",type="Chicken",} 20.0 +mc_entities_total{dim="overworld",dim_id="0",type="Skeleton",} 11.0 +mc_entities_total{dim="overworld",dim_id="0",type="Turtle",} 1.0 +mc_entities_total{dim="overworld",dim_id="0",type="Glow Squid",} 6.0 +mc_entities_total{dim="overworld",dim_id="0",type="Creeper",} 9.0 +mc_entities_total{dim="overworld",dim_id="0",type="Cow",} 5.0 +mc_entities_total{dim="overworld",dim_id="0",type="Spider",} 4.0 +mc_entities_total{dim="overworld",dim_id="0",type="Sheep",} 21.0 +mc_entities_total{dim="overworld",dim_id="0",type="Pig",} 3.0 +# HELP mc_server_tick_seconds Stats on server tick times. +# TYPE mc_server_tick_seconds histogram +mc_server_tick_seconds_bucket{le="0.01",} 19.0 +mc_server_tick_seconds_bucket{le="0.025",} 52.0 +mc_server_tick_seconds_bucket{le="0.05",} 73.0 +mc_server_tick_seconds_bucket{le="0.1",} 81.0 +mc_server_tick_seconds_bucket{le="0.25",} 81.0 +mc_server_tick_seconds_bucket{le="0.5",} 81.0 +mc_server_tick_seconds_bucket{le="1.0",} 81.0 +mc_server_tick_seconds_bucket{le="+Inf",} 81.0 +mc_server_tick_seconds_count 81.0 +mc_server_tick_seconds_sum 2.0156327999999997 +# HELP mc_dimension_chunks_loaded The number of loaded dimension chunks. +# TYPE mc_dimension_chunks_loaded gauge +mc_dimension_chunks_loaded{id="0",name="overworld",} 1484.0 +mc_dimension_chunks_loaded{id="1",name="the_end",} 0.0 +mc_dimension_chunks_loaded{id="-1",name="the_nether",} 0.0 +# HELP mc_dimension_tick_seconds Stats on dimension tick times. +# TYPE mc_dimension_tick_seconds histogram +mc_dimension_tick_seconds_bucket{id="-1",name="the_nether",le="0.01",} 81.0 +mc_dimension_tick_seconds_bucket{id="-1",name="the_nether",le="0.025",} 81.0 +mc_dimension_tick_seconds_bucket{id="-1",name="the_nether",le="0.05",} 81.0 +mc_dimension_tick_seconds_bucket{id="-1",name="the_nether",le="0.1",} 81.0 +mc_dimension_tick_seconds_bucket{id="-1",name="the_nether",le="0.25",} 81.0 +mc_dimension_tick_seconds_bucket{id="-1",name="the_nether",le="0.5",} 81.0 +mc_dimension_tick_seconds_bucket{id="-1",name="the_nether",le="1.0",} 81.0 +mc_dimension_tick_seconds_bucket{id="-1",name="the_nether",le="+Inf",} 81.0 +mc_dimension_tick_seconds_count{id="-1",name="the_nether",} 81.0 +mc_dimension_tick_seconds_sum{id="-1",name="the_nether",} 0.007059415000000001 +mc_dimension_tick_seconds_bucket{id="0",name="overworld",le="0.01",} 25.0 +mc_dimension_tick_seconds_bucket{id="0",name="overworld",le="0.025",} 58.0 +mc_dimension_tick_seconds_bucket{id="0",name="overworld",le="0.05",} 74.0 +mc_dimension_tick_seconds_bucket{id="0",name="overworld",le="0.1",} 81.0 +mc_dimension_tick_seconds_bucket{id="0",name="overworld",le="0.25",} 81.0 +mc_dimension_tick_seconds_bucket{id="0",name="overworld",le="0.5",} 81.0 +mc_dimension_tick_seconds_bucket{id="0",name="overworld",le="1.0",} 81.0 +mc_dimension_tick_seconds_bucket{id="0",name="overworld",le="+Inf",} 81.0 +mc_dimension_tick_seconds_count{id="0",name="overworld",} 81.0 +mc_dimension_tick_seconds_sum{id="0",name="overworld",} 1.7862429789999998 +mc_dimension_tick_seconds_bucket{id="1",name="the_end",le="0.01",} 81.0 +mc_dimension_tick_seconds_bucket{id="1",name="the_end",le="0.025",} 81.0 +mc_dimension_tick_seconds_bucket{id="1",name="the_end",le="0.05",} 81.0 +mc_dimension_tick_seconds_bucket{id="1",name="the_end",le="0.1",} 81.0 +mc_dimension_tick_seconds_bucket{id="1",name="the_end",le="0.25",} 81.0 +mc_dimension_tick_seconds_bucket{id="1",name="the_end",le="0.5",} 81.0 +mc_dimension_tick_seconds_bucket{id="1",name="the_end",le="1.0",} 81.0 +mc_dimension_tick_seconds_bucket{id="1",name="the_end",le="+Inf",} 81.0 +mc_dimension_tick_seconds_count{id="1",name="the_end",} 81.0 +mc_dimension_tick_seconds_sum{id="1",name="the_end",} 0.025222452 +# HELP jvm_gc_collection_seconds Time spent in a given JVM garbage collector in seconds. +# TYPE jvm_gc_collection_seconds summary +jvm_gc_collection_seconds_count{gc="G1 Young Generation",} 40.0 +jvm_gc_collection_seconds_sum{gc="G1 Young Generation",} 0.635 +jvm_gc_collection_seconds_count{gc="G1 Concurrent GC",} 16.0 +jvm_gc_collection_seconds_sum{gc="G1 Concurrent GC",} 0.08 +jvm_gc_collection_seconds_count{gc="G1 Old Generation",} 0.0 +jvm_gc_collection_seconds_sum{gc="G1 Old Generation",} 0.0 # HELP process_cpu_seconds_total Total user and system CPU time spent in seconds. # TYPE process_cpu_seconds_total counter -process_cpu_seconds_total 123.15 +process_cpu_seconds_total 175.36 # HELP process_start_time_seconds Start time of the process since unix epoch in seconds. # TYPE process_start_time_seconds gauge -process_start_time_seconds 1.724104469947E9 +process_start_time_seconds 1.724121398637E9 # HELP process_open_fds Number of open file descriptors. # TYPE process_open_fds gauge -process_open_fds 307.0 +process_open_fds 302.0 # HELP process_max_fds Maximum number of open file descriptors. # TYPE process_max_fds gauge process_max_fds 524288.0 # HELP process_virtual_memory_bytes Virtual memory size in bytes. # TYPE process_virtual_memory_bytes gauge -process_virtual_memory_bytes 1.5599640576E10 +process_virtual_memory_bytes 1.55987968E10 # HELP process_resident_memory_bytes Resident memory size in bytes. # TYPE process_resident_memory_bytes gauge -process_resident_memory_bytes 1.95561472E9 +process_resident_memory_bytes 2.092867584E9 +# HELP jvm_buffer_pool_used_bytes Used bytes of a given JVM buffer pool. +# TYPE jvm_buffer_pool_used_bytes gauge +jvm_buffer_pool_used_bytes{pool="mapped",} 0.0 +jvm_buffer_pool_used_bytes{pool="direct",} 1.1109687E7 +jvm_buffer_pool_used_bytes{pool="mapped - 'non-volatile memory'",} 0.0 +# HELP jvm_buffer_pool_capacity_bytes Bytes capacity of a given JVM buffer pool. +# TYPE jvm_buffer_pool_capacity_bytes gauge +jvm_buffer_pool_capacity_bytes{pool="mapped",} 0.0 +jvm_buffer_pool_capacity_bytes{pool="direct",} 1.1109686E7 +jvm_buffer_pool_capacity_bytes{pool="mapped - 'non-volatile memory'",} 0.0 +# HELP jvm_buffer_pool_used_buffers Used buffers of a given JVM buffer pool. +# TYPE jvm_buffer_pool_used_buffers gauge +jvm_buffer_pool_used_buffers{pool="mapped",} 0.0 +jvm_buffer_pool_used_buffers{pool="direct",} 54.0 +jvm_buffer_pool_used_buffers{pool="mapped - 'non-volatile memory'",} 0.0 # HELP jvm_memory_pool_allocated_bytes_created Total bytes allocated in a given JVM memory pool. Only updated after GC, not continuously. # TYPE jvm_memory_pool_allocated_bytes_created gauge -jvm_memory_pool_allocated_bytes_created{pool="CodeHeap 'profiled nmethods'",} 1.724104515679E9 -jvm_memory_pool_allocated_bytes_created{pool="G1 Old Gen",} 1.724104515679E9 -jvm_memory_pool_allocated_bytes_created{pool="G1 Eden Space",} 1.724104515679E9 -jvm_memory_pool_allocated_bytes_created{pool="CodeHeap 'non-profiled nmethods'",} 1.724104515679E9 -jvm_memory_pool_allocated_bytes_created{pool="G1 Survivor Space",} 1.724104515679E9 -jvm_memory_pool_allocated_bytes_created{pool="Compressed Class Space",} 1.724104515679E9 -jvm_memory_pool_allocated_bytes_created{pool="Metaspace",} 1.724104515679E9 -jvm_memory_pool_allocated_bytes_created{pool="CodeHeap 'non-nmethods'",} 1.724104515679E9 +jvm_memory_pool_allocated_bytes_created{pool="CodeHeap 'profiled nmethods'",} 1.724121465315E9 +jvm_memory_pool_allocated_bytes_created{pool="G1 Old Gen",} 1.724121465316E9 +jvm_memory_pool_allocated_bytes_created{pool="G1 Eden Space",} 1.724121465316E9 +jvm_memory_pool_allocated_bytes_created{pool="CodeHeap 'non-profiled nmethods'",} 1.724121465316E9 +jvm_memory_pool_allocated_bytes_created{pool="G1 Survivor Space",} 1.724121465316E9 +jvm_memory_pool_allocated_bytes_created{pool="Compressed Class Space",} 1.724121465316E9 +jvm_memory_pool_allocated_bytes_created{pool="Metaspace",} 1.724121465316E9 +jvm_memory_pool_allocated_bytes_created{pool="CodeHeap 'non-nmethods'",} 1.724121465316E9 # HELP mc_dimension_tick_seconds_created Stats on dimension tick times. # TYPE mc_dimension_tick_seconds_created gauge -mc_dimension_tick_seconds_created{id="-1",name="the_nether",} 1.724104515516E9 -mc_dimension_tick_seconds_created{id="0",name="overworld",} 1.724104515479E9 -mc_dimension_tick_seconds_created{id="1",name="the_end",} 1.724104515515E9 +mc_dimension_tick_seconds_created{id="-1",name="the_nether",} 1.724121464216E9 +mc_dimension_tick_seconds_created{id="0",name="overworld",} 1.724121464184E9 +mc_dimension_tick_seconds_created{id="1",name="the_end",} 1.724121464215E9 # HELP mc_server_tick_seconds_created Stats on server tick times. # TYPE mc_server_tick_seconds_created gauge -mc_server_tick_seconds_created 1.724104515401E9 +mc_server_tick_seconds_created 1.724121464136E9 diff --git a/examples/prometheus_exporter-server.toml b/examples/prometheus_exporter-server.toml index 57ae9cb..e15d96e 100644 --- a/examples/prometheus_exporter-server.toml +++ b/examples/prometheus_exporter-server.toml @@ -16,10 +16,11 @@ mc_dimension_tick_errors = "LOG" #Enable collecting metrics about the entities in each dimension (world). mc_entities = true + #Web server settings. [web] + #The IP address to listen on. To only allow connections from the local machine, use "127.0.0.1". To allow connections from remote machines, use "0.0.0.0". + listen_address = "0.0.0.0" #The TCP port to listen on. Ports 1-1023 will not work unless Minecraft is run as root which is not recommended. #Range: 0 ~ 65535 listen_port = 19565 - #The IP address to listen on. To only allow connections from the local machine, use "127.0.0.1". To allow connections from remote machines, use "0.0.0.0". - listen_address = "0.0.0.0" diff --git a/gradle.properties b/gradle.properties index bd3db07..842ff81 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,18 +7,21 @@ org.gradle.daemon=false ## Environment Properties # The Minecraft version must agree with the Forge version to get a valid artifact -minecraft_version=1.20.6 +minecraft_version=1.21.1 + # The Minecraft version range can use any release version of Minecraft as bounds. # Snapshots, pre-releases, and release candidates are not guaranteed to sort properly # as they do not follow standard versioning conventions. -minecraft_version_range=[1.20.6,1.21) +minecraft_version_range=[1.21.1,1.22) + # The Forge version must agree with the Minecraft version to get a valid artifact -forge_version=50.1.0 +forge_version=52.0.0 + # The Forge version range can use any version of Forge as bounds or match the loader version range -forge_version_range=[50,) +forge_version_range=[52,) # The loader version range can only use the major version of Forge/FML as bounds -loader_version_range=[50,) +loader_version_range=[52,) # The mapping channel to use for mappings. # The default set of supported mapping channels are ["official", "snapshot", "snapshot_nodoc", "stable", "stable_nodoc"]. @@ -38,7 +41,7 @@ mapping_channel=official # The mapping version to query from the mapping channel. # This must match the format required by the mapping channel. -mapping_version=1.20.6 +mapping_version=1.21.1 ## Mod Properties diff --git a/src/main/resources/pack.mcmeta b/src/main/resources/pack.mcmeta index 5190013..c3624c2 100644 --- a/src/main/resources/pack.mcmeta +++ b/src/main/resources/pack.mcmeta @@ -1,6 +1,6 @@ { "pack": { "description": "${mod_id} resources", - "pack_format": 32 + "pack_format": 34 } }