@remnawave/backend-contract 2.6.46 → 2.6.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/backend/commands/system/get-remnawave-health.command.d.ts +96 -26
- package/build/backend/commands/system/get-remnawave-health.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-remnawave-health.command.js +14 -4
- package/build/backend/commands/system/get-stats.command.d.ts +20 -20
- package/build/backend/constants/cache-keys/cache-keys.constants.d.ts +1 -0
- package/build/backend/constants/cache-keys/cache-keys.constants.d.ts.map +1 -1
- package/build/backend/constants/cache-keys/cache-keys.constants.js +1 -0
- package/build/backend/constants/metrics/metric-names.constant.d.ts +9 -12
- package/build/backend/constants/metrics/metric-names.constant.d.ts.map +1 -1
- package/build/backend/constants/metrics/metric-names.constant.js +13 -12
- package/build/frontend/commands/system/get-remnawave-health.command.js +14 -4
- package/build/frontend/constants/cache-keys/cache-keys.constants.js +1 -0
- package/build/frontend/constants/metrics/metric-names.constant.js +13 -12
- package/package.json +1 -1
|
@@ -5,46 +5,116 @@ export declare namespace GetRemnawaveHealthCommand {
|
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
6
|
const ResponseSchema: z.ZodObject<{
|
|
7
7
|
response: z.ZodObject<{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
runtimeMetrics: z.ZodArray<z.ZodObject<{
|
|
9
|
+
rss: z.ZodNumber;
|
|
10
|
+
heapUsed: z.ZodNumber;
|
|
11
|
+
heapTotal: z.ZodNumber;
|
|
12
|
+
external: z.ZodNumber;
|
|
13
|
+
arrayBuffers: z.ZodNumber;
|
|
14
|
+
eventLoopDelayMs: z.ZodNumber;
|
|
15
|
+
eventLoopP99Ms: z.ZodNumber;
|
|
16
|
+
activeHandles: z.ZodNumber;
|
|
17
|
+
uptime: z.ZodNumber;
|
|
18
|
+
pid: z.ZodNumber;
|
|
19
|
+
timestamp: z.ZodNumber;
|
|
20
|
+
instanceId: z.ZodString;
|
|
21
|
+
instanceType: z.ZodString;
|
|
12
22
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
23
|
+
timestamp: number;
|
|
24
|
+
rss: number;
|
|
25
|
+
heapUsed: number;
|
|
26
|
+
heapTotal: number;
|
|
27
|
+
external: number;
|
|
28
|
+
arrayBuffers: number;
|
|
29
|
+
eventLoopDelayMs: number;
|
|
30
|
+
eventLoopP99Ms: number;
|
|
31
|
+
activeHandles: number;
|
|
32
|
+
uptime: number;
|
|
33
|
+
pid: number;
|
|
34
|
+
instanceId: string;
|
|
35
|
+
instanceType: string;
|
|
16
36
|
}, {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
37
|
+
timestamp: number;
|
|
38
|
+
rss: number;
|
|
39
|
+
heapUsed: number;
|
|
40
|
+
heapTotal: number;
|
|
41
|
+
external: number;
|
|
42
|
+
arrayBuffers: number;
|
|
43
|
+
eventLoopDelayMs: number;
|
|
44
|
+
eventLoopP99Ms: number;
|
|
45
|
+
activeHandles: number;
|
|
46
|
+
uptime: number;
|
|
47
|
+
pid: number;
|
|
48
|
+
instanceId: string;
|
|
49
|
+
instanceType: string;
|
|
20
50
|
}>, "many">;
|
|
21
51
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
52
|
+
runtimeMetrics: {
|
|
53
|
+
timestamp: number;
|
|
54
|
+
rss: number;
|
|
55
|
+
heapUsed: number;
|
|
56
|
+
heapTotal: number;
|
|
57
|
+
external: number;
|
|
58
|
+
arrayBuffers: number;
|
|
59
|
+
eventLoopDelayMs: number;
|
|
60
|
+
eventLoopP99Ms: number;
|
|
61
|
+
activeHandles: number;
|
|
62
|
+
uptime: number;
|
|
63
|
+
pid: number;
|
|
64
|
+
instanceId: string;
|
|
65
|
+
instanceType: string;
|
|
26
66
|
}[];
|
|
27
67
|
}, {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
68
|
+
runtimeMetrics: {
|
|
69
|
+
timestamp: number;
|
|
70
|
+
rss: number;
|
|
71
|
+
heapUsed: number;
|
|
72
|
+
heapTotal: number;
|
|
73
|
+
external: number;
|
|
74
|
+
arrayBuffers: number;
|
|
75
|
+
eventLoopDelayMs: number;
|
|
76
|
+
eventLoopP99Ms: number;
|
|
77
|
+
activeHandles: number;
|
|
78
|
+
uptime: number;
|
|
79
|
+
pid: number;
|
|
80
|
+
instanceId: string;
|
|
81
|
+
instanceType: string;
|
|
32
82
|
}[];
|
|
33
83
|
}>;
|
|
34
84
|
}, "strip", z.ZodTypeAny, {
|
|
35
85
|
response: {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
86
|
+
runtimeMetrics: {
|
|
87
|
+
timestamp: number;
|
|
88
|
+
rss: number;
|
|
89
|
+
heapUsed: number;
|
|
90
|
+
heapTotal: number;
|
|
91
|
+
external: number;
|
|
92
|
+
arrayBuffers: number;
|
|
93
|
+
eventLoopDelayMs: number;
|
|
94
|
+
eventLoopP99Ms: number;
|
|
95
|
+
activeHandles: number;
|
|
96
|
+
uptime: number;
|
|
97
|
+
pid: number;
|
|
98
|
+
instanceId: string;
|
|
99
|
+
instanceType: string;
|
|
40
100
|
}[];
|
|
41
101
|
};
|
|
42
102
|
}, {
|
|
43
103
|
response: {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
104
|
+
runtimeMetrics: {
|
|
105
|
+
timestamp: number;
|
|
106
|
+
rss: number;
|
|
107
|
+
heapUsed: number;
|
|
108
|
+
heapTotal: number;
|
|
109
|
+
external: number;
|
|
110
|
+
arrayBuffers: number;
|
|
111
|
+
eventLoopDelayMs: number;
|
|
112
|
+
eventLoopP99Ms: number;
|
|
113
|
+
activeHandles: number;
|
|
114
|
+
uptime: number;
|
|
115
|
+
pid: number;
|
|
116
|
+
instanceId: string;
|
|
117
|
+
instanceType: string;
|
|
48
118
|
}[];
|
|
49
119
|
};
|
|
50
120
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-remnawave-health.command.d.ts","sourceRoot":"","sources":["../../../../commands/system/get-remnawave-health.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,sBAAyB,CAAC;IACnC,MAAM,OAAO,sBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-remnawave-health.command.d.ts","sourceRoot":"","sources":["../../../../commands/system/get-remnawave-health.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,sBAAyB,CAAC;IACnC,MAAM,OAAO,sBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -11,10 +11,20 @@ var GetRemnawaveHealthCommand;
|
|
|
11
11
|
GetRemnawaveHealthCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SYSTEM_ROUTES.HEALTH, 'get', 'Get Remnawave Health');
|
|
12
12
|
GetRemnawaveHealthCommand.ResponseSchema = zod_1.z.object({
|
|
13
13
|
response: zod_1.z.object({
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
runtimeMetrics: zod_1.z.array(zod_1.z.object({
|
|
15
|
+
rss: zod_1.z.number(),
|
|
16
|
+
heapUsed: zod_1.z.number(),
|
|
17
|
+
heapTotal: zod_1.z.number(),
|
|
18
|
+
external: zod_1.z.number(),
|
|
19
|
+
arrayBuffers: zod_1.z.number(),
|
|
20
|
+
eventLoopDelayMs: zod_1.z.number(),
|
|
21
|
+
eventLoopP99Ms: zod_1.z.number(),
|
|
22
|
+
activeHandles: zod_1.z.number(),
|
|
23
|
+
uptime: zod_1.z.number(),
|
|
24
|
+
pid: zod_1.z.number(),
|
|
25
|
+
timestamp: zod_1.z.number(),
|
|
26
|
+
instanceId: zod_1.z.string(),
|
|
27
|
+
instanceType: zod_1.z.string(),
|
|
18
28
|
})),
|
|
19
29
|
}),
|
|
20
30
|
});
|
|
@@ -90,6 +90,11 @@ export declare namespace GetStatsCommand {
|
|
|
90
90
|
totalUsers: number;
|
|
91
91
|
};
|
|
92
92
|
timestamp: number;
|
|
93
|
+
uptime: number;
|
|
94
|
+
cpu: {
|
|
95
|
+
cores: number;
|
|
96
|
+
physicalCores: number;
|
|
97
|
+
};
|
|
93
98
|
memory: {
|
|
94
99
|
total: number;
|
|
95
100
|
free: number;
|
|
@@ -97,11 +102,6 @@ export declare namespace GetStatsCommand {
|
|
|
97
102
|
active: number;
|
|
98
103
|
available: number;
|
|
99
104
|
};
|
|
100
|
-
cpu: {
|
|
101
|
-
cores: number;
|
|
102
|
-
physicalCores: number;
|
|
103
|
-
};
|
|
104
|
-
uptime: number;
|
|
105
105
|
onlineStats: {
|
|
106
106
|
lastDay: number;
|
|
107
107
|
lastWeek: number;
|
|
@@ -118,6 +118,11 @@ export declare namespace GetStatsCommand {
|
|
|
118
118
|
totalUsers: number;
|
|
119
119
|
};
|
|
120
120
|
timestamp: number;
|
|
121
|
+
uptime: number;
|
|
122
|
+
cpu: {
|
|
123
|
+
cores: number;
|
|
124
|
+
physicalCores: number;
|
|
125
|
+
};
|
|
121
126
|
memory: {
|
|
122
127
|
total: number;
|
|
123
128
|
free: number;
|
|
@@ -125,11 +130,6 @@ export declare namespace GetStatsCommand {
|
|
|
125
130
|
active: number;
|
|
126
131
|
available: number;
|
|
127
132
|
};
|
|
128
|
-
cpu: {
|
|
129
|
-
cores: number;
|
|
130
|
-
physicalCores: number;
|
|
131
|
-
};
|
|
132
|
-
uptime: number;
|
|
133
133
|
onlineStats: {
|
|
134
134
|
lastDay: number;
|
|
135
135
|
lastWeek: number;
|
|
@@ -148,6 +148,11 @@ export declare namespace GetStatsCommand {
|
|
|
148
148
|
totalUsers: number;
|
|
149
149
|
};
|
|
150
150
|
timestamp: number;
|
|
151
|
+
uptime: number;
|
|
152
|
+
cpu: {
|
|
153
|
+
cores: number;
|
|
154
|
+
physicalCores: number;
|
|
155
|
+
};
|
|
151
156
|
memory: {
|
|
152
157
|
total: number;
|
|
153
158
|
free: number;
|
|
@@ -155,11 +160,6 @@ export declare namespace GetStatsCommand {
|
|
|
155
160
|
active: number;
|
|
156
161
|
available: number;
|
|
157
162
|
};
|
|
158
|
-
cpu: {
|
|
159
|
-
cores: number;
|
|
160
|
-
physicalCores: number;
|
|
161
|
-
};
|
|
162
|
-
uptime: number;
|
|
163
163
|
onlineStats: {
|
|
164
164
|
lastDay: number;
|
|
165
165
|
lastWeek: number;
|
|
@@ -178,6 +178,11 @@ export declare namespace GetStatsCommand {
|
|
|
178
178
|
totalUsers: number;
|
|
179
179
|
};
|
|
180
180
|
timestamp: number;
|
|
181
|
+
uptime: number;
|
|
182
|
+
cpu: {
|
|
183
|
+
cores: number;
|
|
184
|
+
physicalCores: number;
|
|
185
|
+
};
|
|
181
186
|
memory: {
|
|
182
187
|
total: number;
|
|
183
188
|
free: number;
|
|
@@ -185,11 +190,6 @@ export declare namespace GetStatsCommand {
|
|
|
185
190
|
active: number;
|
|
186
191
|
available: number;
|
|
187
192
|
};
|
|
188
|
-
cpu: {
|
|
189
|
-
cores: number;
|
|
190
|
-
physicalCores: number;
|
|
191
|
-
};
|
|
192
|
-
uptime: number;
|
|
193
193
|
onlineStats: {
|
|
194
194
|
lastDay: number;
|
|
195
195
|
lastWeek: number;
|
|
@@ -19,6 +19,7 @@ export declare const INTERNAL_CACHE_KEYS: {
|
|
|
19
19
|
readonly NODE_USER_USAGE: (nodeId: bigint) => string;
|
|
20
20
|
readonly NODE_USER_USAGE_KEYS: "node_user_usage_keys";
|
|
21
21
|
readonly PROCESSING_POSTFIX: ":processing";
|
|
22
|
+
readonly RUNTIME_METRICS: "runtime_metrics";
|
|
22
23
|
};
|
|
23
24
|
export declare const INTERNAL_CACHE_KEYS_TTL: {
|
|
24
25
|
readonly NODE_USER_USAGE: 10800;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache-keys.constants.d.ts","sourceRoot":"","sources":["../../../../constants/cache-keys/cache-keys.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,UAAU;;6CAEa,MAAM;2CACR,MAAM,QAAQ,yBAAyB;kDAEhC,MAAM;oDACJ,MAAM;;;CAGvC,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AAEX,eAAO,MAAM,mBAAmB;;uCAEF,MAAM
|
|
1
|
+
{"version":3,"file":"cache-keys.constants.d.ts","sourceRoot":"","sources":["../../../../constants/cache-keys/cache-keys.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,UAAU;;6CAEa,MAAM;2CACR,MAAM,QAAQ,yBAAyB;kDAEhC,MAAM;oDACJ,MAAM;;;CAGvC,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AAEX,eAAO,MAAM,mBAAmB;;uCAEF,MAAM;;;;CAK1B,CAAC;AAEX,eAAO,MAAM,uBAAuB;;CAE1B,CAAC"}
|
|
@@ -21,6 +21,7 @@ exports.INTERNAL_CACHE_KEYS = {
|
|
|
21
21
|
NODE_USER_USAGE: (nodeId) => `${exports.INTERNAL_CACHE_KEYS.NODE_USER_USAGE_PREFIX}${nodeId.toString()}`,
|
|
22
22
|
NODE_USER_USAGE_KEYS: 'node_user_usage_keys',
|
|
23
23
|
PROCESSING_POSTFIX: ':processing',
|
|
24
|
+
RUNTIME_METRICS: 'runtime_metrics',
|
|
24
25
|
};
|
|
25
26
|
exports.INTERNAL_CACHE_KEYS_TTL = {
|
|
26
27
|
NODE_USER_USAGE: 10800, // 3 hours in seconds
|
|
@@ -8,18 +8,15 @@ export declare const METRIC_NAMES: {
|
|
|
8
8
|
readonly NODE_INBOUND_DOWNLOAD_BYTES: "node_inbound_download_bytes";
|
|
9
9
|
readonly NODE_OUTBOUND_UPLOAD_BYTES: "node_outbound_upload_bytes";
|
|
10
10
|
readonly NODE_OUTBOUND_DOWNLOAD_BYTES: "node_outbound_download_bytes";
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly NODEJS_HTTP_REQ_RATE: "nodejs_http_req_rate";
|
|
21
|
-
readonly NODEJS_HTTP_REQ_LATENCY_P95: "nodejs_http_req_latency_p95";
|
|
22
|
-
readonly NODEJS_HTTP_REQ_LATENCY_P50: "nodejs_http_req_latency_p50";
|
|
11
|
+
readonly PROCESS_RSS_BYTES: "process_rss_bytes";
|
|
12
|
+
readonly PROCESS_HEAP_USED_BYTES: "process_heap_used_bytes";
|
|
13
|
+
readonly PROCESS_HEAP_TOTAL_BYTES: "process_heap_total_bytes";
|
|
14
|
+
readonly PROCESS_EXTERNAL_BYTES: "process_external_bytes";
|
|
15
|
+
readonly PROCESS_ARRAY_BUFFERS_BYTES: "process_array_buffers_bytes";
|
|
16
|
+
readonly PROCESS_EVENT_LOOP_DELAY_MS: "process_event_loop_delay_ms";
|
|
17
|
+
readonly PROCESS_EVENT_LOOP_P99_MS: "process_event_loop_p99_ms";
|
|
18
|
+
readonly PROCESS_ACTIVE_HANDLES: "process_active_handles";
|
|
19
|
+
readonly PROCESS_UPTIME_SECONDS: "process_uptime_seconds";
|
|
23
20
|
};
|
|
24
21
|
export type TMetricNames = typeof METRIC_NAMES;
|
|
25
22
|
export type TMetricNamesKeys = (typeof METRIC_NAMES)[keyof typeof METRIC_NAMES];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metric-names.constant.d.ts","sourceRoot":"","sources":["../../../../constants/metrics/metric-names.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"metric-names.constant.d.ts","sourceRoot":"","sources":["../../../../constants/metrics/metric-names.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;CA2Bf,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC;AAC/C,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -11,16 +11,17 @@ exports.METRIC_NAMES = {
|
|
|
11
11
|
NODE_INBOUND_DOWNLOAD_BYTES: 'node_inbound_download_bytes',
|
|
12
12
|
NODE_OUTBOUND_UPLOAD_BYTES: 'node_outbound_upload_bytes',
|
|
13
13
|
NODE_OUTBOUND_DOWNLOAD_BYTES: 'node_outbound_download_bytes',
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
// Memory
|
|
15
|
+
PROCESS_RSS_BYTES: 'process_rss_bytes',
|
|
16
|
+
PROCESS_HEAP_USED_BYTES: 'process_heap_used_bytes',
|
|
17
|
+
PROCESS_HEAP_TOTAL_BYTES: 'process_heap_total_bytes',
|
|
18
|
+
PROCESS_EXTERNAL_BYTES: 'process_external_bytes',
|
|
19
|
+
PROCESS_ARRAY_BUFFERS_BYTES: 'process_array_buffers_bytes',
|
|
20
|
+
// Event loop
|
|
21
|
+
PROCESS_EVENT_LOOP_DELAY_MS: 'process_event_loop_delay_ms',
|
|
22
|
+
PROCESS_EVENT_LOOP_P99_MS: 'process_event_loop_p99_ms',
|
|
23
|
+
// Resources
|
|
24
|
+
PROCESS_ACTIVE_HANDLES: 'process_active_handles',
|
|
25
|
+
// General
|
|
26
|
+
PROCESS_UPTIME_SECONDS: 'process_uptime_seconds',
|
|
26
27
|
};
|
|
@@ -11,10 +11,20 @@ var GetRemnawaveHealthCommand;
|
|
|
11
11
|
GetRemnawaveHealthCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SYSTEM_ROUTES.HEALTH, 'get', 'Get Remnawave Health');
|
|
12
12
|
GetRemnawaveHealthCommand.ResponseSchema = zod_1.z.object({
|
|
13
13
|
response: zod_1.z.object({
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
runtimeMetrics: zod_1.z.array(zod_1.z.object({
|
|
15
|
+
rss: zod_1.z.number(),
|
|
16
|
+
heapUsed: zod_1.z.number(),
|
|
17
|
+
heapTotal: zod_1.z.number(),
|
|
18
|
+
external: zod_1.z.number(),
|
|
19
|
+
arrayBuffers: zod_1.z.number(),
|
|
20
|
+
eventLoopDelayMs: zod_1.z.number(),
|
|
21
|
+
eventLoopP99Ms: zod_1.z.number(),
|
|
22
|
+
activeHandles: zod_1.z.number(),
|
|
23
|
+
uptime: zod_1.z.number(),
|
|
24
|
+
pid: zod_1.z.number(),
|
|
25
|
+
timestamp: zod_1.z.number(),
|
|
26
|
+
instanceId: zod_1.z.string(),
|
|
27
|
+
instanceType: zod_1.z.string(),
|
|
18
28
|
})),
|
|
19
29
|
}),
|
|
20
30
|
});
|
|
@@ -21,6 +21,7 @@ exports.INTERNAL_CACHE_KEYS = {
|
|
|
21
21
|
NODE_USER_USAGE: (nodeId) => `${exports.INTERNAL_CACHE_KEYS.NODE_USER_USAGE_PREFIX}${nodeId.toString()}`,
|
|
22
22
|
NODE_USER_USAGE_KEYS: 'node_user_usage_keys',
|
|
23
23
|
PROCESSING_POSTFIX: ':processing',
|
|
24
|
+
RUNTIME_METRICS: 'runtime_metrics',
|
|
24
25
|
};
|
|
25
26
|
exports.INTERNAL_CACHE_KEYS_TTL = {
|
|
26
27
|
NODE_USER_USAGE: 10800, // 3 hours in seconds
|
|
@@ -11,16 +11,17 @@ exports.METRIC_NAMES = {
|
|
|
11
11
|
NODE_INBOUND_DOWNLOAD_BYTES: 'node_inbound_download_bytes',
|
|
12
12
|
NODE_OUTBOUND_UPLOAD_BYTES: 'node_outbound_upload_bytes',
|
|
13
13
|
NODE_OUTBOUND_DOWNLOAD_BYTES: 'node_outbound_download_bytes',
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
// Memory
|
|
15
|
+
PROCESS_RSS_BYTES: 'process_rss_bytes',
|
|
16
|
+
PROCESS_HEAP_USED_BYTES: 'process_heap_used_bytes',
|
|
17
|
+
PROCESS_HEAP_TOTAL_BYTES: 'process_heap_total_bytes',
|
|
18
|
+
PROCESS_EXTERNAL_BYTES: 'process_external_bytes',
|
|
19
|
+
PROCESS_ARRAY_BUFFERS_BYTES: 'process_array_buffers_bytes',
|
|
20
|
+
// Event loop
|
|
21
|
+
PROCESS_EVENT_LOOP_DELAY_MS: 'process_event_loop_delay_ms',
|
|
22
|
+
PROCESS_EVENT_LOOP_P99_MS: 'process_event_loop_p99_ms',
|
|
23
|
+
// Resources
|
|
24
|
+
PROCESS_ACTIVE_HANDLES: 'process_active_handles',
|
|
25
|
+
// General
|
|
26
|
+
PROCESS_UPTIME_SECONDS: 'process_uptime_seconds',
|
|
26
27
|
};
|