{"id":28456658,"url":"https://github.com/prisma/metrics-tutorial-prisma","last_synced_at":"2025-07-26T22:12:19.229Z","repository":{"id":61354966,"uuid":"542531034","full_name":"prisma/metrics-tutorial-prisma","owner":"prisma","description":"Database Metrics with Prisma, Prometheus \u0026 Grafana","archived":false,"fork":false,"pushed_at":"2022-10-18T22:17:51.000Z","size":122,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T01:46:59.582Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.prisma.io/blog/metrics-tutorial-prisma-pmoldgq10kz","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prisma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-28T10:23:35.000Z","updated_at":"2024-02-19T19:14:34.000Z","dependencies_parsed_at":"2023-01-20T08:17:49.797Z","dependency_job_id":null,"html_url":"https://github.com/prisma/metrics-tutorial-prisma","commit_stats":null,"previous_names":["prisma/metrics-tutorial-prisma"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/prisma/metrics-tutorial-prisma","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fmetrics-tutorial-prisma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fmetrics-tutorial-prisma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fmetrics-tutorial-prisma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fmetrics-tutorial-prisma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prisma","download_url":"https://codeload.github.com/prisma/metrics-tutorial-prisma/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fmetrics-tutorial-prisma/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262577690,"owners_count":23331470,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-06T23:08:25.684Z","updated_at":"2025-06-29T10:30:56.435Z","avatar_url":"https://github.com/prisma.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Prisma metrics tutorial\n\nReference code for [\"Database Metrics with Prisma, Prometheus \u0026 Grafana\"](https://www.prisma.io/blog/metrics-tutorial-prisma-pmoldgq10kz).\n\n\nThis branch reflects the code at the _end of the tutorial_.\n\nFor reference express server used at the _beginning of the tutorial_ go to the [`metrics-begin`](https://github.com/TasinIshmam/metrics-tutorial-prisma/tree/metrics-begin) branch.\n\n### Installation\n\n1. Clone this repository: `git clone git@github.com:TasinIshmam/metrics-tutorial-prisma.git`.\n2. Navigate to the cloned directory: `cd metrics-tutorial-prisma`.\n3. Install dependencies: `npm install`.\n4. Start the PostgreSQL, Prometheus and Grafana with Docker: `docker-compose up --force-recreate`.\n5. Run migrations: `npx prisma migrate dev`.\n6. Start the server: `npm run dev`.\n7. Test the API endpoints using the load testing script: `npm run loadtest`.\n8. Access Prometheus in [`http://localhost:9090`](http://localhost:9090).\n9. Access Grafana in [`http://localhost:3000`](http://localhost:3000). \n\nMore information about configuring Grafana is available starting with [this section](https://prisma.io/blog/metrics-tutorial-prisma-pmoldgq10kz#add-a-prometheus-data-source-to-grafana) of the tutorial.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Fmetrics-tutorial-prisma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprisma%2Fmetrics-tutorial-prisma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Fmetrics-tutorial-prisma/lists"}