Exposes a simple API from a database. Then exposes the data the database receives through the API in a dashboard.
$ cp env.sample .env
$ docker-compose up
Configure Grafana container, use this, this and thisDoneCheck this ticket on updates to upsert method so we can use PostgREST as an input tooSolved hereProvision datasource to GrafanaDone, can't use environment variables thoughProvision dashboard to GrafanaDoneCreate script to add users to Postgres that have INSERT permission to the API schema in the postgres databaseDoneGive select permissions to grafana user in api tableDoneSeparate results boolean from api tableDoneAdd test table and verification (being able to post to the API with generated token) in team creation scriptDoesn't seem useful anymoreCompare audit team with submitted team in a plot in grafanaNot needed any more, implemented through policiesCount submission lines in a plot tooDone, created metrics viewsAdd trigger to write team in submission or use default value (wrapNot needed any more, submissions table was removedcurrent_setting('request.jwt.claim.team', true)
in function?)insertar campo accuracy en tabla submissions y quitar de metricsNo es necesario, el accuracy se calcula en una vistacambiar vista validate a una vista de submissions donde accuracy = NULLNo, agregaremos resultados como tabla estatica y pondremos una vista que calcule accuracycambiar results.datediff a tipo date con nombre dateDonecambiar results.quantity a tipo float con 2 decimales (scale 20, 2 decimales) con nombre billingDone- add fingerprint?
- better python and R clients, more robust
add team tables, swap team to team_id in token, join team name in all tables that use team columnDone- Add JWK generation to team creation script
- Add send credentials by email to team creation script
- Add SSL with nginx container and Let's Encrypt
add policy: count rows per submission = rows in realDone, but current implementation not working