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
Prisma AI Help4mo ago
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the #ask-ai channel awaits if you're curious!
Rige
Rige4mo 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
Nurul4mo 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
mashafrancisOP4mo ago
Awesome. Thank you.
Nurul
Nurul4mo ago
No worries at all!
Parwar Yassin
Parwar Yassin4mo 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
mashafrancisOP4mo 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
Nurul4mo 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
mashafrancisOP4mo ago
Ok. Great. I managed to work with what you have provided, getting the pool metrics.
Nurul
Nurul4mo ago
Glad to hear that 🙂

Did you find this page helpful?