Prisma metrics.

Since the metrics preview is marked to deprecated, to be removed in v7, is there an alternative for fetching metrics? Or any plans?
10 Replies
Prisma AI Help
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the #ask-ai channel awaits if you're curious!
Rige
Rige3w ago
+1 I'm also curious about this. Surprised to see this feature getting deprecated. There's no mention of it in docs or blogs, although maybe because this is brand new info. Would the suggestion be to create an extension to handle this?
Nurul
Nurul3w ago
GitHub
Deprecated metrics in Prisma 7 · prisma prisma · Discussion #27898
Question Deprecated metrics Preview feature (which will be removed in Prisma 7). What to use instead? How to reproduce (optional) No response Expected behavior (optional) No response Information ab...
mashafrancis
mashafrancisOP3w ago
Awesome. Thank you.
Nurul
Nurul3w ago
No worries at all!
Parwar Yassin
Parwar Yassin3w ago
hi i am still learning about prisma and currently we have a project that move to production soon, what is metrics in prisma ? note/ we will use postgressql database in a vps
mashafrancis
mashafrancisOP2w ago
Hi @Nurul (Prisma) I tried the links shared in the post. They go to 404. Might need to check. I’m curious to see an example with the new telemetry API.
Nurul
Nurul2w ago
I was referring to this answer: https://github.com/prisma/prisma/discussions/27898#discussioncomment-14103980 The other answer was AI generated by someone. Metrics provides you information about your connections. How many connections are idle/active/busy/waiting etc
mashafrancis
mashafrancisOP2w ago
Ok. Great. I managed to work with what you have provided, getting the pool metrics.
Nurul
Nurul2w ago
Glad to hear that 🙂

Did you find this page helpful?