feat: feed worker metrics into runtime router

This commit is contained in:
John
2026-07-02 07:35:10 +08:00
parent b97c8e822e
commit a13808b462
8 changed files with 399 additions and 9 deletions
+6
View File
@@ -275,6 +275,10 @@ async function writeMetadata() {
path.join(root, 'scripts', 'runtime-worker-drain.mjs'),
path.join(runtimeRoot, 'scripts', 'runtime-worker-drain.mjs'),
);
await fs.copyFile(
path.join(root, 'scripts', 'runtime-worker-metrics.mjs'),
path.join(runtimeRoot, 'scripts', 'runtime-worker-metrics.mjs'),
);
await fs.copyFile(
path.join(root, 'scripts', 'check-tool-runtime.mjs'),
path.join(runtimeRoot, 'scripts', 'check-tool-runtime.mjs'),
@@ -326,6 +330,8 @@ async function writeMetadata() {
' node scripts/runtime-worker-drain.mjs status',
' node scripts/runtime-worker-drain.mjs reconcile',
' node scripts/runtime-worker-drain.mjs reconcile --apply',
' node scripts/runtime-worker-metrics.mjs status',
' node scripts/runtime-worker-metrics.mjs sample',
' node scripts/runtime-worker-drain.mjs drain goosed-3',
' node scripts/runtime-worker-drain.mjs undrain goosed-3',
' node scripts/check-tool-runtime.mjs',