Boilerplate docker-compose and Prometheus configs to scrape data from Hasura Cloud/Pro Project
- Setup Prometheus Integration for your Project in Hasura cloud.
- Add the
project id
andaccess key
to theprometheus.yml
file as username and password respectively. - Run
docker-compose -f docker-compose.yml up -d
to start Prometheus and Grafana. - Access Grafana dashboard at http://localhost:3000. Login username and password are
admin
andadmin
by default. - Add prometheus data source (The URL is http://prometheus:9090)
- Import the Hasura Metrics Dashboard using the
Hasura Metrics.json
file. - As we make requests to the Hasura Project, the metrics get updated in the Dashboard.