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
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the
#ask-ai
channel awaits if you're curious!+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?
I responded to a similar question here:
https://github.com/prisma/prisma/discussions/27898#discussioncomment-14103980
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...
Awesome. Thank you.
No worries at all!
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
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.
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
Ok. Great.
I managed to work with what you have provided, getting the pool metrics.
Glad to hear that 🙂