fireband

0.1.4 • Public • Published

fireband

Firebase bandwidth analyzer

Currently includes only a NodeJS collector that captures read/write sizes by path and sends them to BigQuery tables (sharded by day).

Just a first step, lots more to come. You probably don't want to use this yet!

Sample query:

SELECT op, path, tag, SUM(size) AS total_size FROM (
  SELECT op, REGEXP_EXTRACT(path, r'^(/[^/]*)') AS path, tag, size
  FROM TABLE_DATE_RANGE(bandwidth_dev.raw, DATE_ADD(CURRENT_TIMESTAMP(), -7, 'DAY'), CURRENT_TIMESTAMP())
) GROUP BY op, path, tag ORDER BY total_size DESC

Package Sidebar

Install

npm i fireband

Weekly Downloads

5

Version

0.1.4

License

MIT

Last publish

Collaborators

  • fahhem
  • pkaminski