Add Prometheus and Grafana monitoring instructions
Build and Deploy Gateway / build-and-push (push) Successful in 13s
Build and Deploy Gateway / deploy (push) Successful in 7s

This commit is contained in:
2026-08-08 01:28:53 +03:00
parent c26d4cb43b
commit 10888ac012
12 changed files with 906 additions and 9 deletions
+15 -3
View File
@@ -112,10 +112,22 @@ test('subscription expiry uses Russian day forms', () => {
});
test('gateway receives router instructions while local client does not', () => {
const gateway = instructionBlocks({ isGateway: true, host: '192.168.1.20', port: 8080 });
const client = instructionBlocks({ isGateway: false, host: '127.0.0.1', port: 8082 });
const gateway = instructionBlocks({
isGateway: true,
host: '192.168.1.20',
port: 8080,
controlHost: '192.168.1.20:3456',
});
const client = instructionBlocks({
isGateway: false,
host: '127.0.0.1',
port: 8082,
controlHost: '127.0.0.1:3456',
});
assert.equal(gateway.at(-1).id, 'router');
assert.equal(gateway.some((block) => block.id === 'router'), true);
assert.equal(gateway.some((block) => block.id === 'prometheus'), true);
assert.equal(client.some((block) => block.id === 'router'), false);
assert.equal(client.some((block) => block.id === 'prometheus'), false);
assert.match(client.find((block) => block.id === 'vscode').code, /127\.0\.0\.1:8082/);
});