Docs/Telemetry.md

Telemetry

What is recorded to watch and balance the game: every mob's fight, game events, test arena fights and the servers' load over time. They are kept in ClickHouse, a column database made for this: many rows written in batches, read back as counts and averages, compressed about 10 times, old rows dropped by the database itself (TTL). The game's own data (accounts, characters, items) stays in PostgreSQL behind the DbWorker.

flowchart LR
    GS[GameServer] -- "events every 1 s, arena fights" --> T[Telemetry :8095]
    O[Orchestrator] -- "GET /api/state every 10 s" --> T
    T -- "batched inserts (HTTP)" --> CH[(ClickHouse :8123)]
    M[Monitor] -- "GET" --> T

Monitoring never holds the game up. The GameServer queues its events on the simulation thread (TelemetrySender.Add, never waits) and sends them every second from another thread. If the Telemetry service does not answer, they wait (at most 10 000, the newest dropped beyond) and are sent later. The Telemetry service also queues what it receives (EventBuffer: at most 50 000) and writes it to ClickHouse in batches of up to 1 000. An arena fight is sent at once; if that fails it is only logged as lost (it was a test).

The service (Apps/Telemetry)

A small ASP.NET service, port 8095. Every route except /telemetry/health requires the shared worker key (header X-Worker-Key, WORKER_KEY), the same as the DbWorker's. Routes are in Shared.Contracts/TelemetryApi.cs (TelemetryRoutes):

Route
POST /telemetry/events a batch of GameEventDto (a GameServer)
GET /telemetry/events?type=&player=&hours=&take= the last events, newest first (Monitor, Events)
GET /telemetry/social?hours=&take= the players' social life (SocialDto, see Social): each kind's count, by and towards how many players, the players most blocked and reported, the last social events (Monitor, Social)
GET /telemetry/events/summary?hours= how many of each type by species, mean mob level and value (EventSummaryDto)
GET /telemetry/quests/summary?hours= per quest: taken, completed, handed in, abandoned, mean minutes to complete and to hand in (QuestSummaryDto, from the quest_* events)
POST /telemetry/arena/fights an ArenaFightDto (a GameServer, at the end of a fight)
POST /telemetry/flights a GlideFlightDto (the ApiServer, a player's glide: see Glides)
GET /telemetry/flights?hours=&player=&take= / GET /telemetry/flights/{id} the last glides without their trace / one glide with it (Monitor, Flights)
GET /telemetry/arena/fights?take=[&character=] the last fights (Monitor, Arena), or one character's (the ApiServer's GET /api/arena/fights: the arena screen's Last fights)
GET /telemetry/metrics?hours= the servers' load, averaged over about 300 points (Monitor, Servers)
POST /telemetry/fights a batch of FightDto (a GameServer)
GET /telemetry/fights?hours=&source=&dev=&solo=&take= the last fights (Monitor, Balance); source = all, world or arena; dev includes the fights with DEV tools; solo keeps those of one player
GET /telemetry/fights/groups?by=&hours=&source=&dev=&solo= the fights put together (FightGroupDto: sums, so they add up into bands): by=gap per rarity and level gap, species, affix (a fight counted under each of its particularities)
GET /telemetry/health ok, events written and dropped since the start

It talks to ClickHouse through its HTTP interface (ClickHouse.cs, no driver): rows are inserted as JSON lines (JSONEachRow) whose keys are the DTOs' properties in snake_case, times in ISO 8601 UTC. MetricsRecorder reads the Orchestrator's state every 10 s (X-Admin-Key) and writes one row per running server.

Schema (Schema.cs): numbered steps run once at start, like database migrations (their numbers kept in schema_migrations); add a step at the end, never change one already deployed. Step 4 copied the arena fights recorded in PostgreSQL before (GET /db/arena/fights of the DbWorker, kept until that table is dropped: see Todo.md).

Table Rows Kept
game_events at, type, server, the player (character_id, player_name, player_level), the mob (species, mob_level, rarity, affixes), x, z, value, detail 90 days
arena_fights the arena fights (ArenaFightDto, see Test arena in World.md), with specials: the special attacks its mobs made always
server_metrics every 10 s per server: kind, players, mobs, tick_ms, messages_per_second, memory_mb 30 days
fights every mob's fight (see below) 180 days
glide_flights every glide of a player (see Glides below), with its trace 90 days

Fights (MobFight, table fights)

The data to balance players against mobs: one row per mob's fight, in the world and in the arena (Server.Core/Simulation/MobFight.cs). A fight begins when the mob gets a target (or is first hit) and ends when it has none any more or is dead (MobFight.Track, each tick, in MobAiSystem):

Column
result killed (by a player), died (its player died), gave_up (it went home), left (its player left the server), removed (an arena fight stopped). Only the first three count on the Balance page. A gave_up where nothing happened (no hit either way, no attack started: a mob that noticed a player far away and let go) is not recorded (2026-11-27: half the fights were such)
seconds, arena, dev how long; in the test arena; its player used DEV tools (dev locomotion, mob aggro off) at its start or end
character_id, player_name, player_level, weapons, players its first player, and how many players hurt the mob
mean_distance how far its first player stood from the mob, on average over the fight (metres; 0: recorded before it was)
by_attack what hurt its first player, by attack, most first (Landslide 26, Boulder 11, Smash 8; a hit without an attack by its source: aura, poison...; empty: none, or recorded before it was)
casts each of its attacks at its first player: how many hurt it over how many it started at it (Landslide 2/5, Rockfall 1/4; its melee and aura not counted: they always land in reach). One minus their ratio is what the player dodged, the fight model's dodge (balance.json)
armor the armour its first player wore (Armors.Describe: the same pieces put together, e.g. Tank/Bulwark S Lv 125 ×3 + Dps S Lv 120 ×2, none; empty: a fight recorded before it was); also in arena_fights
species, mob_level, rarity, affixes, gap, mob_max_hp the mob; gap = its level − the player's
damage_dealt, defense_absorbed, hits, shots, shots_hit what the players' hits did after its defence, what its defence took, how many hits (each pellet, burst and pierce), the first player's shots meanwhile (all its shots, at anything), and its shots that hit this mob at least once (shots_hit / shots: the accuracy; step 7)
charge_sum, tempo_sum, tempo_shots the first player's shots during the fight: their charge summed (each shot's power over a full charge's, the weapon's curve: an uncharged belt shot 0.1; charge_sum / shots: the mean charge) and their tempo (Shots.Tempo: the full charge time over the time since that hand's shot before, at most 1: charge 2 s and fire, 1; fire 10 s after, 0.2; a pause over 15 s is a new start, not counted; tempo_sum / tempo_shots). Accuracy × charge × tempo: the share of the damage the player could do that it does (steps 8 to 10)
player_max_hp, health_lost, regenerated the most of the first player's health lost during the fight (0..1, any source), its health regenerated meanwhile
taken_melee … taken_other what the mob dealt the players by source (DamageSource: melee, aura, zone, shot, explosion, poison, reflected, other)
sprints, specials, mob_healed the mob's pursuit sprints, special attacks, and the health it got back (regeneration, heals)

Recording costs nothing per tick: one MobFight per mob, made at its first fight and reused; the player keeps the mobs whose fight is its own (SimPlayer.Fights) to note its lowest health; a row is made only at the end. The GameServer sends them in batches with the events (TelemetrySender).

Balance targets (Config/balance.json)

What a fight alone should be like, by rarity and level gap (BalanceTargets): how long a won fight lasts, the most health lost, the share of deaths, each [min, max]. Starting values, to adjust: e.g. a normal mob of one's level ±2: 10 to 20 s, 20 to 40 % of the health lost, under 5 % of deaths; +10 and over: 85 % of deaths and more; a champion +10: 95 % and more. The bands of a rarity must not overlap (checked at load, FightRecordTests).

The Monitor's Balance page puts the fights of the period (alone by default, without DEV tools, world and arena or one of them) into these bands: fights, won, died, time of a win, health lost, damage dealt and taken per second; each graded value green within its target, red outside, with the target under it. Then by exact gap, by species, by particularity, and the last 50 fights (with where the damage taken came from).

Arena bots (BotClient --arena)

To map the balance without playing: bots fight in the test arena on a grid of player levels, level gaps, rarities, species and behaviours (Tools/BotClient/ArenaBots.cs). They run inside the server's simulation (WorldSimulation: the same mobs, AI, pursuit, shots, defence, particularities and special attacks as the game), faster than real time and without the network: about a thousand fights a second, where the real arena takes one fight at a time in real time. No backend is needed but the Telemetry service (to record them).

dotnet run --project Tools/BotClient -- --arena                       # the default grid: 1 080 fights, about 2 s
dotnet run --project Tools/BotClient -- --arena --levels 50 --gaps 0,5,10 --rarities Champion --species all --behaviours circle --repeat 5
Option Default
--levels 5,20,50,100 the bots' levels
--gaps -5,0,3,6,10 mob level − bot level
--rarities Normal,Elite,Champion
--species Slime,Boar,Wolf or all (the 24 species)
--behaviours stand,strafe,circle stand still; sideways back and forth at 8 to 14 m; round the mob at 5 m; keep25, keep35: 25 m or 35 m from the mob, strafing (a mob fighting from afar: the stone golem). Every one jumps over a shockwave and runs (its run speed) sideways out of a cone announced on it
--group 1 how many bots fight each mob together (side by side, 4 m apart, the same behaviour; the first starts the fight and the fight ends with it): the summary adds the mean of each one's lowest health, how many went down, how often the mob changed target, the share of its time on the first
--affixes drawn as a mob of that level draws them in the world; none; or a list (Aura,Leap)
--repeat 2 fights per cell of the grid
--blaster Standard:B the blaster in each hand, forged at the bot's level (Sniper:E, Heavy:A...)
--max-seconds 240 a fight longer than this is stopped
--telemetry http://localhost:8095 where its fights go (none: printed only); --worker-key
--csv also writes every fight to a file (with the mob's record: shots fired and hit, mean distance, damage by attack, casts)

Each bot holds two blasters, charges each fully and fires at where its mob will be (its speed, the ball's flight time). Each fight starts through the arena's own command (countdown, mobs on the south half) and ends as the arena says. Every mob's fight goes to the Telemetry service marked bot (the Balance page's source Arena bots, with a table by behaviour), and a summary against balance.json is printed (ok, LOW, HIGH). A bot does not dodge zones on purpose, jump, glide or use cover: a player does better than circle, so the bots give a floor of what a player can do, and the arena's real fights the rest. Validate.ps1 runs a tiny grid.

First map (2026-11-19, default grid, two Standard B blasters at the bot's level), before and after the rebalance:

Before After (mobs' health ×9: hpAtLevel1 315; champions ×3 instead of ×4)
Normal of one's level won in 4 s, 5 % of the health lost won in 12 to 13 s, 22 to 34 % lost
Normal +3 to +6 won in 4 s 79 to 96 % won in 16 to 18 s
Normal +10 always won, 14 % lost 46 to 83 % of deaths
Elite of one's level 4 s 24 s, 46 to 56 % lost
Champion of one's level won in 6 s 23 to 46 % of deaths, 75 to 83 % lost
Champion +10 13 to 46 % of deaths always lost

That rebalance was made for a perfect shooter. The first real fights in VR (2026-11-19, a level 10 player with two Standard D blasters against level 1 slimes) hit 48 of 118 shots (40 %) with about 65 % of a full charge's damage: 8 to 42 s a slime instead of 7. So the calculator now takes the reference player's hit rate and charge (hitRate, power in balance.json) and the mobs' health went back down to hpAtLevel1 85 (×2.4 the first 35): a mob of one's level takes 10 to 20 s for a real player. The arena bots still shoot perfectly: their fights are about 3 times shorter than the targets (--calc --perfect gives their theory). The Balance page's Accuracy column (the shots that hit over the shots fired in solo fights, by gap, species and player; a shot's pellets, bursts and pierces count once) is what keeps hitRate true.

Then (2026-11-19 evening) the real accuracy, without the pellets blaster, was measured at 77 % (charge 65 % in the world, 85 % in the arena, tempo 90 %): the reference player was set to it, the targets recalibrated on what the player found right (a mob of one's level 5 to 15 s), and the champions made bosses (×6 health, ×3 damage, attacks ×1.3 as often, a special 6 s into the fight then at least every 15 s): a level 10 player had beaten champions 10 levels above by kiting them (no melee taken, no special within the fight); one of its level is now as hard as those were.

Balance calculator (BalanceMath, BotClient --calc)

The theory, from the config files alone (Shared.Gameplay/BalanceMath.cs): a player of a level holding blasters forged at its level against a mob of a level, rarity and species, both standing. The player fires each blaster as soon as it is fully charged and has ammo and magic (both coming back as in the game); a shot hits hitRate of the time with power of a full charge's damage, each hand at tempo of the fastest pace (the reference player's, in the mean; --perfect: every shot hitting fully charged, as the arena bots); each shot (each pellet) loses the mob's defence. The mob hits with its melee attack at its cooldown, plus a champion's aura (its mean draw). It gives the mob's health and defence, the shots and the time to kill it, the mob's damage per second, the time to kill the player and the health lost. The player takes every blow (a moving player takes fewer): the arena bots and the real fights are compared with it.

dotnet run --project Tools/BotClient -- --calc --levels 20 --gaps -5,0,6,10   # the table, graded against balance.json
dotnet run --project Tools/BotClient -- --calc --perfect                       # every shot hitting fully charged (the arena bots)

balance.json names its reference player (reference: two Standard B blasters, against the mean of the slime, the boar and the wolf, hitting 75 % of its shots with 70 % of a full charge at 90 % of the fastest pace, measured on 81 real fights; the first 40 % came from a pellets blaster shooting anywhere), and BalanceMathTests checks the theory for it against the targets: the same at every level (everything grows ×1.08), a mob of one's level won in its target time with its target health lost, a weaker one quicker, ten levels above too much alone, an elite in its time, a champion of one's level a close fight standing, ten levels above lost. A change of numbers in the config files that breaks the balance fails these tests; then run the arena bots to see it in fights.

An arena fight's course (game_events: cast, hurt, track)

An arena fight (the test sessions) also records its course, to replay it: each attack a mob starts at its fight's player (cast: the attack, its announce, the mob's place), each hurt of a player by a mob (hurt: the damage, the attack and source, the distance, the player's health and height over the ground: a jump) or by its own overheating blaster (hurt without a mob: Backfire), and the player's place every second (track). x, z: the player's place; value: the distance to the mob (a hurt: the damage). Only on the arena: a world fight records its total only (fights).

SELECT at, type, value, detail FROM game_events WHERE player_name = 'test' AND type IN ('cast', 'hurt') ORDER BY at

The fight model (BalanceEncounter, BotClient --calc --model)

BalanceMath counts only the melee: right for a mob that comes to its target, wrong for a stone golem, which stays where it is (anchored) and hurts from afar. Shared.Gameplay/BalanceEncounter.cs plays the whole fight, step by step (0.05 s) until one side is down:

  • The players shoot as in BalanceMath (charge, ammo, magic, armour); several players add their shots up. The reference's hitRateAnchored (93 %: the test sessions) is its hit rate on an anchored mob, hitRate on a moving one.
  • A moving mob comes to melee: its blows as in BalanceMath. An anchored one stays at the players' distance (the reference's 20 m, or the recorded fight's) and uses its attacks in reach as the server does: one after each pause (MobAttacks.GapMin to GapMax, in the mean MobAttacks.GlobalCooldown; an elite or a champion shorter), those in reach in turn (the server draws one at random: the same mean), landing after its wind-up (an elite's or a champion's announces shorter: windUpFactor in mobtraits.json, never under 0.6 s). Each kind is dodged by the reference's dodge share (cone, circle, shockwave, projectile, line, an announced explosion), or computed (below). A slam's wave hits by the distance: nothing within 4 m, then higher and harder, no jump clears it from 30 m.
  • A champion's aura counts when its radius reaches that far. Its special attack comes on its timer (a champion: first at 6 s, then every 15 s at most): an explosion (its radius 10 to 25 m reaching, dodged when announced), a heal (a champion's healShare at each timer; another mob's once, under 70 %), summoned mobs (fighting at the same distance until the end: the players focus the champion). A champion has one, its species' (special.champion in mobtraits.json); another mob's are the mean of its rarity's draw, or given (--specials each: one row per kind).
  • The mob hits one player, its target: the time to die and the health lost are that player's. It also says what the target took by source (melee, aura, an attack's name, explosion, summoned), until the fight ended: what the fights' by_attack gives in the real fights.

The gear, the magic, chance and packs (2026-11-23)

  • The reference player has the basic gear (blasters and a general set E of its level, balance.json's rank and armor); --armor none|ROLE[:RANK] changes it. Its health and magic come mostly from the armour, its magic's refill from its fire hold (Armour in World.md): a long fight runs low, a sniper or a heavy waits.
  • A hit rate by kind (hitRateByKind: first guesses, to measure in the test sessions); an anchored mob's misses fewer by the same share; --laser: a laser blaster misses half as often.
  • Chance (--runs N, BalanceEncounter.Runs): N fights where each shot hits or misses at random: the share won, the median and the bad (90th percentile) times and health lost. A sniper's rare shots: a miss costs a long charge and much magic.
  • A pack (--pack N): N mobs alike at once, killed one after the other, all hitting meanwhile; a burst (a heavy's) hurts each other one 60 % of a shot, a piercing shot (a sniper's) the next one 30 %.
dotnet run --project Tools/BotClient -- --calc --model --levels 30 --gaps 0 --rarities Normal --species Boar --blaster Sniper:E --runs 500
dotnet run --project Tools/BotClient -- --calc --model --levels 30 --gaps 0 --rarities Normal --species Wolf --blaster Heavy:E --pack 4

Test series against the model (Tools/Dev/Test-Series.ps1 -Vary Blaster|Armor|Mob|Dirt|Wear): one thing changes from a fight to the next, the others stay; after each fight the model's row with the hit rate measured in it, and by value the real and the model's mean time and health lost, the shots that hit.

The dodge model (BalanceEncounter.Reaction, reaction in balance.json)

A zone is dodged when the player is out before its announce ends: it starts moving after its reaction (a normal draw, 0.79 ± 1.29 s), then runs out at its speed (8 m/s). The way out: a circle's radius, a line's half width, a cone's side at that distance (or its end), an explosion's radius past the player. Fitted on the solo golem sessions of 2026-11-22 (rockfall and landslide announced ×0.5, ×1, ×1.5 by Test-Session -MobWindUp: dodged 31 %, 55 %, 78 %). A shockwave: cleared when the jump keeps the feet over its wall where the player stands (its time over that height and the server's grace, 0.1 s), the jump timed ± 0.15 s (a first guess: to measure in a slam series at several distances). The boulder keeps its measured share. Without reaction, the dodge shares count.

It leaves out enrage, poison and slows, the other particularities, a mob healing others and the help a mob calls. Tools/Dev/Test-Session.ps1 -Report prints it for each kind of fight recorded, at its distance and players, with the session's blasters and armour (--armor ROLE[:RANK]).

dotnet run --project Tools/BotClient -- --calc --levels 30 --gaps 2 --rarities Champion --species StoneGolem --players 3 --distance 20 --specials each --armor Dps:B

Calibrated on 24 solo arena fights (2026-11-22, stone golems normal and elite, 0 to +6 levels above a level 30 player in a DPS set B; the fights' casts): the player hit 93 % of its shots at about 20 m, about 80 % of a full charge, 97 % of the pace; it dodged 42 % of the landslides, 40 % of the rockfalls, 82 % of the boulders and every slam (balance.json's hitRateAnchored, dodge). With its own aim (--hit 0.93 --power 0.9 --tempo 0.97), the model's times match the real ones (6 to 20 s; real 7 to 20 s) and its health lost is 1.3 to 1.6 times the real one on the elites (52 % for 40 % six levels above). The model's attacks also come as the server's: a cast's cooldown and the next attack counted from the end of its wind-up (MobAttackSystem.EndAttack).

On the first sessions (2026-11-22, a champion stone golem 2 levels above, the player and two team bots at about 20 m), it gives the target dead in 11 to 18 s by the kind of special (11 s in the mean) where the real target died in 11 and 12 s, and the champion killed in 21 s where the real one fell in 15 s (once, the special drawn harmless): the deaths match, the players' damage is a little low (the bots shoot fully charged).

Glides (FlightLog, table glide_flights)

To tune the glide from real flights: the VR client logs every glide (Client.Core.FlightLog, see Gliding in World.md) and, when logged in, sends it at its end to the ApiServer (POST /api/flights, GlideFlightDto: the server sets the character from the token, the time, and cuts the trace at 2400 points; one without its end reason is a 400), which passes it to POST /telemetry/flights (written at once). A row: the character's glide settings (top speed, accel, hover) and the protocol, the time, distance, heights and speeds, the energy (h + v²/2g, metres: the height plus what the speed can climb) at the start and the end, and how much was lost and for how long with the hands level (gliding), down (diving), up (climbing) and fully up (airbrake), why it ended (landed, arms closed, teleport), and the trace: a point every 0.25 s (t, x, y, z, speed, path and pitch in degrees, brake, energy, as arrays). GET /telemetry/flights?hours=&player=&take= lists them without their trace, GET /telemetry/flights/{id} gives one with it (the Monitor's Flights page). The same is written on the player's PC (user://logs/flights.csv, flights-trace.csv), also without the backend.

Loot history (loot_events, loot_daily)

What the players get from the mobs, kept for good (2026-11-28: the history is the base of the items' prices). Three layers:

  • game_events keeps its loot rows (loot_drop, loot_take, loot_lost) for good: the table's expiry (EventDays, 90 days) spares them (TTL ... DELETE WHERE type NOT IN (...), step game_events.ttl).
  • loot_events, a table of its own, no expiry: each loot game event read into columns at ingestion (LootEvents.From on POST /telemetry/events, through its own EventBuffer): the kind (drop, take, lost), the player (id, name, level), the mob (species, level, rarity, particularities), the gold, the item (species, rank 0 E .. 5 S, level; none: gold), the seconds a take waited, where. The loot events still kept when it came were copied into it once (step loot events from game_events, Schema.ImportLoot).
  • loot_daily, the daily sums (a SummingMergeTree fed by the materialized view loot_daily_mv at each insert into loot_events), no expiry: by day, kind, item species, rank, band of 10 levels (LootEvents.LevelBand), mob rarity: how many, their gold, the takes' wait. Tiny even after years: the trends stay if the detail is ever cut.

GET /telemetry/loot/summary?days= (Queries.LootSummary, 0: since the start): by item (species, rank, band), dropped, taken, lost, gold, wait, from the daily sums. GET /telemetry/loot?days=&player=&take= (Queries.Loot): the last events, of a player. The Monitor's Loot page shows both (periods 24 h to all; a player filter). The terms say so (Your data, version 2026-11-28.2).

Settings (SettingsReport, table player_settings)

What the players choose in Options, to see what they use and choose better defaults (2026-11-28). The game reports its settings when the player enters the world, then after a change once it has stayed the same 5 s (Client.Core.SettingsReporter: a slider dragged sends one report), from GameMenuController.ReportSettings (once a second in the game): every switch (1 / 0) and number of the Options tab's sections (SettingsReport.Of: not the microphone's test, not the DEV tab's), whether a microphone and an output were chosen (the keys MicrophoneChosen and Output + Chosen, the device rows' names: never the devices' names), the language (its text); each with whether it is the game's default. POST /api/settings-report (SettingsReportDto, its VR flag and build; checked by SettingsRoutes.Validate: at most 120 settings, short keys and texts, numbers) → the ApiServer adds the character from the token, its name, the time and the protocol → POST /telemetry/settings (a list of PlayerSettingDto): a row per setting, kept 180 days (Schema.SettingDays). A failed report is dropped (never in the player's way). GET /telemetry/settings?days=&vr= (Queries.Settings): each player's last value of each setting over the period (argMax), counted by setting and value (SettingCountDto). The Monitor's Settings page shows, for each setting, how many players, the share not on the default (the list sorted by it: the defaults most often changed first), the mean and the values in use with their players; filters: period, VR or desktop. The terms say so (Your data, version 2026-11-28).

Events (GameEventTypes)

Recorded by the simulation (Server.Core/Simulation/GameEvents.cs, through ISimulationOutbox.GameEvent). Only rare things: an event is a small object, never one per tick (rule 14).

Type When Player, mob value detail
special a mob's special attack goes off (MobAffix.Special) its target, the mob the players its explosion hit at once (a dodgeable one: 0, it lands later if at all) what it did: Explosion 18 m dodgeable · Heal 3 · Summon 4
death a player dies the player, the strongest mob fighting it (if any) the mob's level − the player's the last blow: the attack's name, or aura, explosion, poison, reflected
kill a player kills a mob (not in the arena) the killer, the mob the XP the killer got solo or group N
loot_drop a loot orb appears for a player (LootSystem) the player, the mob its gold (0: an item) gold or the item, Wolf C 12
loot_take a player puts an orb in its bag the player its gold the item or gold, and the seconds it waited: Wolf C 12 34s
loot_lost an orb vanished (time up, too many, a logout) the player its gold the item or gold
levelup a player goes up a level the player the new level kills 12 (curve 10) · 6.5 min: its kills at that level and the kills the curve expects (Rules.KillsToLevel), the minutes it took (counted from its arrival on this server when it came meanwhile)
quest_start a player took a quest (QuestSystem, Docs/Quests.md) the player 0 the quest's id, hunt
quest_complete every objective of a quest taken met (once per taking) the player the seconds since it was taken the quest's id
quest_done a player handed a quest in the player the seconds since it was taken the quest's id; target_name the reward, +XP 120, +25 gold, Slime D Lv3
quest_abandon a player gave up a quest the player the seconds since it was taken the quest's id
quest_flight a glide met a quest's Flight objective (measured by the server) the player its distance (m) its seconds, 12.5s

To add one: a constant in GameEventTypes, a builder in GameEvents, a call where it happens, a test (MobTraitTests, FightRecordTests), a line here. Next candidates: loot, the forge.

Social (game_events, the social kinds)

What the players do with each other, in game_events with the other player in target_id / target_name (both names kept, a closed alpha: to follow abuses):

Kind Sent by Value, detail
friend_request, friend_accept, friend_remove ApiServer (SocialLog) a request: 1 when it made them friends at once
party_invite, party_accept, party_refuse, party_leave, party_kick, party_lead, party_mode ApiServer an invitation or a join: the party's size then; an answer: the party's id and who invited; the mode: everyone or one leader
party_join GameServer (done or refused there), Gateway (refused there) the distance travelled (0: refused, the detail says why)
friend_limited, party_limited ApiServer a request stopped by the anti-spam: the value its rank in the hour, the detail why
block, unblock, report Gateway a report: its reason and the start of its text
mic_off, mic_on, voices_off, voices_on Gateway a change of Options, Audio; or of the Players tab's Voice screen (detail: near or party)

The player who acts is the event's player (character_id, player_name, player_level, x, z: its place then). The ApiServer and the Gateways batch them like the GameServers (TelemetrySender, every second; monitoring never fails an action). What holds now (microphones and sounds off, the parties) is not an event: the Monitor reads it live (the heartbeats' PlayerInfo.MicOff / Deafened; the Orchestrator's GET /api/parties, from Redis).

ClickHouse

Image clickhouse/clickhouse-server:25.8, user nexusoffates, database nexusoffates, password CLICKHOUSE_PASSWORD (.env; generated on the dev server by deploy/deploy.sh). Port 8123 inside the compose network only. Docker/clickhouse/low-memory.xml suits a small node (the 16 GB RK1 shared with the whole backend): memory capped at 2 GB, small caches, none of ClickHouse's own system logs (they grow forever and nothing reads them). It uses about 170 MB idle.

Locally Start-Dev.ps1 runs it in a container (nexusoffates-ch-dev, http://localhost:8123, password nexusoffates) with the Telemetry service. A query by hand:

curl -s -H "X-ClickHouse-User: nexusoffates" -H "X-ClickHouse-Key: nexusoffates" "http://localhost:8123/?database=nexusoffates" \
  --data "SELECT type, count() FROM game_events GROUP BY type"

Tests: Tests/Orchestrator.Tests/TelemetryTests.cs (batches, SQL bounds and quoting, every row filling exactly its table's columns, the metrics' rows); against a real ClickHouse when NEXUSOFFATES_TEST_CLICKHOUSE is set (NEXUSOFFATES_TEST_CLICKHOUSE=http://localhost:8123 dotnet test Tests/Orchestrator.Tests: a throwaway database, dropped after). FightRecordTests checks the fights' records, kills, level ups and targets. Validate.ps1 checks that the bots' run left server metrics, won fights and, if a bot died, a death event.