Package: se-exporter
Python Space Engineers Prometheus ExporterInstallingInstalling withpip:pip3installse-exporterInstalling from source:gitclonehttps://github.com/akimrx/space-engineers-exporter.git--recursivecdspace-engineers-exporter
makeinstall# or python3 setup.py installUsageHelp outputArguments:
  -h host, --host host                 Space Engineers Server (API) host
  -p port, --port port                 SE Remote API port. Default: 8080
  -t key, --token key                  SE Remote API secret key
  --listen-addr addr                   Address on which to expose metrics.
                                       Default: 0.0.0.0
  --listen-port port                   Port on which to expose metrics.
                                       Default: 9122
  --help                               Show this help message
  --version                            Show exporter version

Options:
  -c file, --config file               Path to the config file
  -a, --run-async                      Enable async collect metrics from SE.
                                       It works much faster. If your se server
                                       doesn't have good perfomance - don't
                                       use this feature
  --loglevel debug/info/warning/error  Log facility. Default: infoConfig examplehost:localhostport:5000token:xY12qwe6ZZx123==loglevel:infolisten_addr:0.0.0.0listen_port:9122run_async:trueExamplesRun with config file:se-exporter--config/home/akimrx/config.ymlRun with args:se-exporter-h0.0.0.0-p8080--listen-port9122--token"XYZQWERty123-=="--run-asyncExported metricsMetricTypeLabelsDescriptionplayers_countgaugeserver,worldTotal online players on the serverplayer_pinggaugeserver,world,player_name,player_id,factionPlayer pingtotal_banned_playersgaugeserver,worldTotal banned players on the servertotal_kicked_playersgaugeserver,worldTotal kicked players on the serverserver_is_readygaugeserver,worldThe server is ready to connect playerssimulation_speedgaugeserver,worldCurrent world simulation speedsimulation_cpu_loadgaugeserver,worldCurrent CPU load by simulationserver_game_uptime_secondsgaugeserver,worldTime during which the server is ready to playtotal_pcu_usedgaugeserver,worldTotal used PCU on the ingame world by allpirate_total_pcu_usedgaugeserver,worldTotal used PCU on the ingame world by piratesplanets_countgaugeserver,worldNumber of planets on the game worldtotal_gridsgaugeserver,worldNumber of grids on the game worldtotal_asteroidsgaugeserver,worldNumber of asteroids on the game worldtotal_floating_objectsgaugeserver,worldNumber of floating objects on the game worldcharacters_countgaugeserver,worldCount of total characters on the game worldExample real metrics output# HELP python_gc_objects_collected_total Objects collected during gc# TYPE python_gc_objects_collected_total counterpython_gc_objects_collected_total{generation="0"}246.0
python_gc_objects_collected_total{generation="1"}222.0
python_gc_objects_collected_total{generation="2"}0.0# HELP python_gc_objects_uncollectable_total Uncollectable object found during GC# TYPE python_gc_objects_uncollectable_total counterpython_gc_objects_uncollectable_total{generation="0"}0.0
python_gc_objects_uncollectable_total{generation="1"}0.0
python_gc_objects_uncollectable_total{generation="2"}0.0# HELP python_gc_collections_total Number of times this generation was collected# TYPE python_gc_collections_total counterpython_gc_collections_total{generation="0"}82.0
python_gc_collections_total{generation="1"}7.0
python_gc_collections_total{generation="2"}0.0# HELP python_info Python platform information# TYPE python_info gaugepython_info{implementation="CPython",major="3",minor="7",patchlevel="4",version="3.7.4"}1.0# HELP se_request_processing Time spent collecting SE server data# TYPE se_request_processing summaryse_request_processing_count1.0
se_request_processing_sum0.903450259# HELP se_request_processing_created Time spent collecting SE server data# TYPE se_request_processing_created gaugese_request_processing_created1.6086711216817129e+09# HELP players_count Number of online players on the server# TYPE players_count gaugeplayers_count{server="se by akimrx",world="star system"}1.0# HELP server_is_ready The server is ready to connect players# TYPE server_is_ready gaugeserver_is_ready{server="se by akimrx",world="star system"}1.0# HELP player_ping Just players ping# TYPE player_ping gaugeplayer_ping{faction="FLEX",player_id="12345678910111213",player_name="akimrx",server="se by akimrx",world="star system"}13.0
player_ping{faction="FLEX",player_id="12345678910111214",player_name="rust",server="se by akimrx",world="star system"}26.0# HELP planets_count Number of planets in the game world# TYPE planets_count gaugeplanets_count{server="se by akimrx",world="star system"}8.0# HELP simulation_speed Current simulation speed in the game world# TYPE simulation_speed gaugesimulation_speed{server="se by akimrx",world="star system"}1.02# HELP simulation_cpu_load CPU load generated by the simulation# TYPE simulation_cpu_load gaugesimulation_cpu_load{server="se by akimrx",world="star system"}21.0# HELP server_game_uptime_seconds Time during which the server is ready to play# TYPE server_game_uptime_seconds gaugeserver_game_uptime_seconds{server="se by akimrx",world="star system"}16529.0# HELP total_pcu_used Number of total used PCU on the server# TYPE total_pcu_used gaugetotal_pcu_used{server="se by akimrx",world="star system"}51902.0# HELP pirate_total_pcu_used Number of total used PCU by Pirates on the server# TYPE pirate_total_pcu_used gaugepirate_total_pcu_used{server="se by akimrx",world="star system"}3729.0# HELP total_grids Count of total grids on the game world# TYPE total_grids gaugetotal_grids{server="se by akimrx",world="star system"}14.0# HELP total_asteroids Count of total asteroids on the game world# TYPE total_asteroids gaugetotal_asteroids{server="se by akimrx",world="star system"}119.0# HELP total_floating_objects Count of total floating objects on the game world# TYPE total_floating_objects gaugetotal_floating_objects{server="se by akimrx",world="star system"}84.0# HELP characters_count Count of total characters (including disconnected, but are on the server) on the game world# TYPE characters_count gaugecharacters_count{server="se by akimrx",world="star system"}3.0# HELP total_banned_players Count of total banned players on the game world# TYPE total_banned_players gaugetotal_banned_players{server="se by akimrx",world="star system"}1.0# HELP total_kicked_players Count of total kicked players on the game world# TYPE total_kicked_players gaugetotal_kicked_players{server="se by akimrx",world="star system"}2.0Grafana DashboardFor more details readthis page