Add Grafana dashboard for metrics with datasources, dashboards
Created by: deepakduggirala
Changes in api/
- on login, if role is admin, create a JWT for grafana and set it in a cookie
- on login, if role in not admin, clear this cookie
Changes in ui/
- in dev env, route requests starting with /grafana to Grafana container while adding a security header
- for admin role show metric link in sidebar
Added nginx config and container to test in dev env
Changes to docker compose files to deploy this in production.
Additional Changes:
- in dev env, configure postgres db to output logs
- Add utility functions in workers