# queries to Postgresql are not visible from all applications

**URL:** <https://community.dynatrace.com/t/queries-to-postgresql-are-not-visible-from-all-applications/20471>\
**Category:** Container platforms\
**Tags:** postgresql, kubernetes, java\
**Created:** [October 5, 2020, 1:00pm UTC](https://community.dynatrace.com/t/queries-to-postgresql-are-not-visible-from-all-applications/20471 "2020-10-05T13:00:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![georgi95\_bg](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@georgi95\_bg](https://community.dynatrace.com/u/georgi95_bg)\
**Post date:** [October 5, 2020, 1:00pm UTC](https://community.dynatrace.com/t/queries-to-postgresql-are-not-visible-from-all-applications/20471/1 "2020-10-05T13:00:46Z")

</div>

I have successfully installed one agent in a k8s environment. There I have 2 applications and a Postgres cluster. The first application is tomcat based and the second one is pure java one. When I call the endpoints of the tomcat application I could see the SQL calls in the databases tab in the dynatrace dashboard. From [Transactions and services](https://apm.cf.eu10.hana.ondemand.com/e/b21c00c2-22b7-4a65-9912-d2550c3ee9d4/#newservices) / \<my application\> I could also see the connection to the database and the monitoring is working as expected. The second application is java one as I previously said but when I examine it I couldn’t see a connection to the database (

 ![26834-screenshot-2020-10-05-at-155740.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/d06b4fed1720db6124505d7a7acffa8c3506eb7f.png)  
) and any SQL queries from the pure paths but in the Postgres command-line client, I could see that the calls successfully reached the DB and impacted the schema. The two apps share a common project which makes the calls using a JDBC driver. My question is why I am able to see the calls to the DB from the tomcat app and not from the pure java one.

---

<div class="post-metadata">

**Author:** ![Joe\_Hoffman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/joe_hoffman/32/30752_2.png) [@Joe\_Hoffman](https://community.dynatrace.com/u/Joe_Hoffman)\
**Post date:** [October 5, 2020, 2:58pm UTC](https://community.dynatrace.com/t/queries-to-postgresql-are-not-visible-from-all-applications/20471/2 "2020-10-05T14:58:58Z")

</div>

A few questions:

1) Can you clarify that you’re using a JDBC driver and not a JDBS driver.

2) I’m a bit unclear as to whether the ‘non-tomcat’ application whether you’re seeing any purepaths at all. If not, then perhaps you need to create service endpoint (Custom service) where a purepath can start. Traditionally Dynatrace only starts a purepath from ‘known’ starting points such as Servlet and web service endpoints. A simple Main() will not suffice for a purepath starting point.
