Installation of the OneAgent on the AIX server where DB2 is running the will monitor the the DB2 process. This allows indirect monitoring of the database. You should also be able to see the queries going to the database.
Thank you Hayden, if need to restart the db2 process ? will have number of instances of db2 process? since I am doing frist time on the db2 agent installation oneagent on AIX server.
The OneAgent by default will group all DB2 instances together into a single process group instance called DB2 as of OneAgent v1.307, however you can use Simple Detection rules based on the Environment Variable DB2INSTANCE and DT_CUSTOM_PROP with the Process group Naming, and the DB2ENVLIST setting to import the DT_CUSTOM_PROP value to then split these out into individual DB2 instances names as the instance values.
DB2ENVLIST and DT_CUSTOM_PROP are set in the /db2/<instanceName>/sqllib/db2profile file, usually the last 2 lines.