@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1CREATE TABLE {$NAMESPACE}_multimeter.multimeter_event (
2 id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
3 eventType INT UNSIGNED NOT NULL,
4 eventLabelID INT UNSIGNED NOT NULL,
5 resourceCost BIGINT NOT NULL,
6 sampleRate INT UNSIGNED NOT NULL,
7 eventContextID INT UNSIGNED NOT NULL,
8 eventHostID INT UNSIGNED NOT NULL,
9 eventViewerID INT UNSIGNED NOT NULL,
10 epoch INT UNSIGNED NOT NULL,
11 requestKey BINARY(12) NOT NULL,
12 KEY `key_request` (requestKey),
13 KEY `key_type` (eventType, epoch)
14) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};