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 idandaccess keyto theprometheus.ymlfile as username and password respectively. - Run
docker-compose -f docker-compose.yml up -dto start Prometheus and Grafana. - Access Grafana dashboard at http://localhost:3000. Login username and password are
adminandadminby default. - Add prometheus data source (The URL is http://prometheus:9090)
- Import the Hasura Metrics Dashboard using the
Hasura Metrics.jsonfile. - As we make requests to the Hasura Project, the metrics get updated in the Dashboard.