Start an OpenFGA server, simulate some traffic, check the metrics and traces.
- Docker: https://docs.docker.com/engine/install/
- FGA CLI: https://github.com/openfga/cli#installation
- Start OpenFGA with tracing and metrics enabled:
docker-compose up --detach - Create a store:
export FGA_STORE_ID=$(fga store create --model model.fga | jq -r .store.id) - Write the authorization model:
fga model write --file model.fga - Write tuples:
fga tuple write --file tuples.yaml - Make Check calls:
fga model test --tests demo.fga.yaml - See metrics in Prometheus: http://localhost:9090/. E.g.
go_sql_open_connections - See metrics in Grafana: http://localhost:3001/
- See traces in Jaeger: http://localhost:16686/search
- Stop OpenFGA and remove data:
docker-compose down --volumes
-
Learn more about OpenFGA: https://openfga.dev / https://openfga.dev/blog.
-
Follow us on Twitter: @openfga
And please, don't forget to star our Github Repository!