Skip to content

Commit fcfda07

Browse files
committed
docs: document license activation filter
1 parent 4c14704 commit fcfda07

1 file changed

Lines changed: 96 additions & 0 deletions

File tree

docs/config/store.md

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,54 @@ CREATE TABLE `SessionMessage` (
235235
INDEX `idx_time` (`f_time`)
236236
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Session Messages';
237237

238+
CREATE TABLE `metrics_data` (
239+
`id` VARCHAR(64) NOT NULL PRIMARY KEY,
240+
`application_id` VARCHAR(64) NOT NULL COMMENT 'Application ID',
241+
`node_endpoint` VARCHAR(255) NOT NULL COMMENT 'Node endpoint',
242+
`connections_current` BIGINT DEFAULT 0,
243+
`subscriptions_current` BIGINT DEFAULT 0,
244+
`messages_received_total` BIGINT DEFAULT 0,
245+
`messages_sent_total` BIGINT DEFAULT 0,
246+
`messages_published_total` BIGINT DEFAULT 0,
247+
`connect_events` BIGINT DEFAULT 0,
248+
`disconnect_events` BIGINT DEFAULT 0,
249+
`subscribe_events` BIGINT DEFAULT 0,
250+
`unsubscribe_events` BIGINT DEFAULT 0,
251+
`jvm_memory_used` BIGINT DEFAULT 0,
252+
`jvm_memory_max` BIGINT DEFAULT 0,
253+
`jvm_memory_committed` BIGINT DEFAULT 0,
254+
`jvm_heap_used` BIGINT DEFAULT 0,
255+
`jvm_heap_max` BIGINT DEFAULT 0,
256+
`jvm_heap_committed` BIGINT DEFAULT 0,
257+
`jvm_nonheap_used` BIGINT DEFAULT 0,
258+
`jvm_nonheap_max` BIGINT DEFAULT 0,
259+
`jvm_nonheap_committed` BIGINT DEFAULT 0,
260+
`jvm_metaspace_used` BIGINT DEFAULT 0,
261+
`jvm_metaspace_max` BIGINT DEFAULT 0,
262+
`jvm_metaspace_committed` BIGINT DEFAULT 0,
263+
`jvm_codecache_used` BIGINT DEFAULT 0,
264+
`jvm_codecache_max` BIGINT DEFAULT 0,
265+
`jvm_codecache_committed` BIGINT DEFAULT 0,
266+
`jvm_compressed_class_space_used` BIGINT DEFAULT 0,
267+
`jvm_compressed_class_space_max` BIGINT DEFAULT 0,
268+
`jvm_compressed_class_space_committed` BIGINT DEFAULT 0,
269+
`jvm_gc_count` BIGINT DEFAULT 0,
270+
`jvm_gc_time` BIGINT DEFAULT 0,
271+
`jvm_threads_current` BIGINT DEFAULT 0,
272+
`jvm_threads_daemon` BIGINT DEFAULT 0,
273+
`jvm_threads_peak` BIGINT DEFAULT 0,
274+
`jvm_threads_deadlocked` BIGINT DEFAULT 0,
275+
`jvm_classes_loaded` BIGINT DEFAULT 0,
276+
`jvm_classes_unloaded` BIGINT DEFAULT 0,
277+
`process_cpu_usage` DOUBLE DEFAULT 0,
278+
`system_cpu_usage` DOUBLE DEFAULT 0,
279+
`uptime` BIGINT DEFAULT 0,
280+
`collected_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
281+
INDEX `idx_metrics_app` (`application_id`),
282+
INDEX `idx_metrics_collected` (`collected_at`),
283+
INDEX `idx_metrics_app_node` (`application_id`, `node_endpoint`)
284+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Historical monitoring metrics';
285+
238286
CREATE TABLE `ProtocolExtensionInfo` (
239287
`id` VARCHAR(64) NOT NULL PRIMARY KEY,
240288
`f_protocol_type` VARCHAR(50) NOT NULL COMMENT 'Protocol type',
@@ -481,6 +529,54 @@ CREATE TABLE "SessionMessage" (
481529
CREATE INDEX "idx_sessionmsg_client" ON "SessionMessage"("f_client_id");
482530
CREATE INDEX "idx_sessionmsg_time" ON "SessionMessage"("f_time");
483531

532+
CREATE TABLE "metrics_data" (
533+
"id" VARCHAR(64) PRIMARY KEY,
534+
"application_id" VARCHAR(64) NOT NULL,
535+
"node_endpoint" VARCHAR(255) NOT NULL,
536+
"connections_current" BIGINT DEFAULT 0,
537+
"subscriptions_current" BIGINT DEFAULT 0,
538+
"messages_received_total" BIGINT DEFAULT 0,
539+
"messages_sent_total" BIGINT DEFAULT 0,
540+
"messages_published_total" BIGINT DEFAULT 0,
541+
"connect_events" BIGINT DEFAULT 0,
542+
"disconnect_events" BIGINT DEFAULT 0,
543+
"subscribe_events" BIGINT DEFAULT 0,
544+
"unsubscribe_events" BIGINT DEFAULT 0,
545+
"jvm_memory_used" BIGINT DEFAULT 0,
546+
"jvm_memory_max" BIGINT DEFAULT 0,
547+
"jvm_memory_committed" BIGINT DEFAULT 0,
548+
"jvm_heap_used" BIGINT DEFAULT 0,
549+
"jvm_heap_max" BIGINT DEFAULT 0,
550+
"jvm_heap_committed" BIGINT DEFAULT 0,
551+
"jvm_nonheap_used" BIGINT DEFAULT 0,
552+
"jvm_nonheap_max" BIGINT DEFAULT 0,
553+
"jvm_nonheap_committed" BIGINT DEFAULT 0,
554+
"jvm_metaspace_used" BIGINT DEFAULT 0,
555+
"jvm_metaspace_max" BIGINT DEFAULT 0,
556+
"jvm_metaspace_committed" BIGINT DEFAULT 0,
557+
"jvm_codecache_used" BIGINT DEFAULT 0,
558+
"jvm_codecache_max" BIGINT DEFAULT 0,
559+
"jvm_codecache_committed" BIGINT DEFAULT 0,
560+
"jvm_compressed_class_space_used" BIGINT DEFAULT 0,
561+
"jvm_compressed_class_space_max" BIGINT DEFAULT 0,
562+
"jvm_compressed_class_space_committed" BIGINT DEFAULT 0,
563+
"jvm_gc_count" BIGINT DEFAULT 0,
564+
"jvm_gc_time" BIGINT DEFAULT 0,
565+
"jvm_threads_current" BIGINT DEFAULT 0,
566+
"jvm_threads_daemon" BIGINT DEFAULT 0,
567+
"jvm_threads_peak" BIGINT DEFAULT 0,
568+
"jvm_threads_deadlocked" BIGINT DEFAULT 0,
569+
"jvm_classes_loaded" BIGINT DEFAULT 0,
570+
"jvm_classes_unloaded" BIGINT DEFAULT 0,
571+
"process_cpu_usage" DOUBLE PRECISION DEFAULT 0,
572+
"system_cpu_usage" DOUBLE PRECISION DEFAULT 0,
573+
"uptime" BIGINT DEFAULT 0,
574+
"collected_at" TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP
575+
);
576+
CREATE INDEX IF NOT EXISTS idx_metrics_app ON "metrics_data"("application_id");
577+
CREATE INDEX IF NOT EXISTS idx_metrics_collected ON "metrics_data"("collected_at");
578+
CREATE INDEX IF NOT EXISTS idx_metrics_app_node ON "metrics_data"("application_id", "node_endpoint");
579+
484580
CREATE TABLE "ProtocolExtensionInfo" (
485581
"id" VARCHAR(64) NOT NULL PRIMARY KEY,
486582
"f_protocol_type" VARCHAR(50) NOT NULL,

0 commit comments

Comments
 (0)