SSmetrics - Elasticsearch powered metrics viewing

This commit is contained in:
AffectedArc07
2021-08-15 13:00:19 +01:00
parent d03fc7ea1c
commit 2ece3203c2
12 changed files with 97 additions and 0 deletions
+6
View File
@@ -12,6 +12,12 @@ SUBSYSTEM_DEF(mobs)
/// The amount of giant spiders that exist in the world. Used for mob capping.
var/giant_spiders = 0
/datum/controller/subsystem/mobs/get_metrics()
. = ..()
var/list/cust = list()
cust["processing"] = length(GLOB.mob_living_list)
.["custom"] = cust
/datum/controller/subsystem/mobs/stat_entry()
..("P:[GLOB.mob_living_list.len]")