chore: schedule runtime slo reports

This commit is contained in:
John
2026-07-02 08:12:02 +08:00
parent e3ce4032c6
commit a402509d6e
5 changed files with 158 additions and 0 deletions
+7
View File
@@ -307,6 +307,10 @@ async function writeMetadata() {
path.join(root, 'scripts', 'install-runtime-metrics-agent.sh'),
path.join(runtimeRoot, 'scripts', 'install-runtime-metrics-agent.sh'),
);
await fs.copyFile(
path.join(root, 'scripts', 'install-runtime-slo-report-agent.sh'),
path.join(runtimeRoot, 'scripts', 'install-runtime-slo-report-agent.sh'),
);
await fs.copyFile(
path.join(root, 'scripts', 'check-tool-runtime.mjs'),
path.join(runtimeRoot, 'scripts', 'check-tool-runtime.mjs'),
@@ -362,6 +366,8 @@ async function writeMetadata() {
' node scripts/runtime-worker-metrics.mjs sample',
' bash scripts/install-runtime-metrics-agent.sh',
' node scripts/runtime-slo-report.mjs',
' node scripts/runtime-slo-report.mjs --write-report',
' bash scripts/install-runtime-slo-report-agent.sh',
' node scripts/runtime-worker-drain.mjs drain goosed-3',
' node scripts/runtime-worker-drain.mjs undrain goosed-3',
' node scripts/check-tool-runtime.mjs',
@@ -393,6 +399,7 @@ async function main() {
await fs.chmod(path.join(runtimeRoot, 'scripts', 'runtime-slo-report.mjs'), 0o755);
await fs.chmod(path.join(runtimeRoot, 'scripts', 'agent-run-worker.mjs'), 0o755);
await fs.chmod(path.join(runtimeRoot, 'scripts', 'install-runtime-metrics-agent.sh'), 0o755);
await fs.chmod(path.join(runtimeRoot, 'scripts', 'install-runtime-slo-report-agent.sh'), 0o755);
await fs.chmod(path.join(runtimeRoot, 'scripts', 'check-tool-runtime.mjs'), 0o755);
await fs.chmod(path.join(runtimeRoot, 'scripts', 'memind-portal-tunnel.sh'), 0o755);
console.log('');