plutonium / prometheus-exporter
Prometheus exporter for PocketMine-MP
Installs: 2 145
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^8.2
- amphp/http-server: ^2.0
- amphp/http-server-router: ^1.0
- promphp/prometheus_client_php: ^2.7
This package is auto-updated.
Last update: 2025-03-09 11:55:26 UTC
README
This exporter has been developed for use as a plugin on a Pocketmine server (> 5.0).
Register custom metrics
// In onLoad() \Plutonium\PrometheusExporter\metrics\MetricsManager::registerMetric(new MyCustomMetric());
Default metrics
Name | Description |
---|---|
pocketmine_memory_heap_bytes |
Memory usage of heap in bytes |
pocketmine_memory_main_thread_bytes |
Memory usage of main thread in bytes |
pocketmine_player_online_count |
Count of online players |
pocketmine_thread_count |
PocketMine thread count |
pocketmine_ticks_per_second |
Indicates how much server lag spikes |
pocketmine_tick_usage |
How much tick using |
pocketmine_view_distance |
View distance number repartition by size |
pocketmine_world_chunk_loaded |
Loaded chunk count by world |
pocketmine_world_entity_count |
Count of entity by world |
pocketmine_world_loaded |
Currently loaded world |
pocketmine_world_player_count |
Count of player by world |
pocketmine_world_tick_rate |
Tick rate time(millisecond) of world |