# Node Elastic APM agent not instrumenting PSQL database calls made in API (nest-js framework with drizzle ORM)

**URL:** <https://discuss.elastic.co/t/node-elastic-apm-agent-not-instrumenting-psql-database-calls-made-in-api-nest-js-framework-with-drizzle-orm/359857>\
**Category:** Elastic Agent\
**Created:** [May 20, 2024, 4:37pm UTC](https://discuss.elastic.co/t/node-elastic-apm-agent-not-instrumenting-psql-database-calls-made-in-api-nest-js-framework-with-drizzle-orm/359857 "2024-05-20T16:37:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hypernova](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hypernova/32/134663_2.png) [@hypernova](https://discuss.elastic.co/u/hypernova)\
**Post date:** [May 20, 2024, 4:37pm UTC](https://discuss.elastic.co/t/node-elastic-apm-agent-not-instrumenting-psql-database-calls-made-in-api-nest-js-framework-with-drizzle-orm/359857/1 "2024-05-20T16:37:12Z")

</div>

Hi,

I was recently experimenting with the elastic stack for my backend server monitoring. I am doing self managed setup with docker containers.  
I setup the elastic, kibana, metricbeat and fleet-server.  
It works well but it not picking up the postgres db calls I make in the api for fetching and saving data. It only shows the trace of my api calls and a call to a third party api but it is not picking up the postgres db calls.

I have hosted the postgres database on [neon db.](https://neon.tech/)  
I'm developing this backend using nest-js (a node framework) and [drizzle orm](https://orm.drizzle.team/docs/overview).

Here's the link to my [repo](https://github.com/Dark-Knight11/elastic-apm/tree/postgres)

Please let me know how should I resolve this.

Specs:  
Elastic Stack: 8.13.4  
Elastic-agent ([elastic-apm-node](https://www.npmjs.com/package/elastic-apm-node)): 4.5.4
