Open Shigawire opened 10 months ago
Got an update on this one:
Apparently, there is a "new" Oracle monitoring integration (oracle-dbm
). This integration records way more metrics than the oracle
integration written in Python.
After moving to the oracle-dbm
integration and enabling dbm: true
in the configuration, we see all reported values.
However, the official instructions to set up a datadog
user in the Oracle instance are slightly off:
https://docs.datadoghq.com/database_monitoring/setup_oracle/selfhosted/?tab=noncdb#create-view
The dd_session
view requires reading from the "x"-tables x$ksuse
, x$kslwt
and x$ksled
but it's impossible to grant a select from those tables to the datadog
-user. Hence, it's necessary to create views onto those tables and grant select permissions to the datadog
user with the sysdba
-user:
create view v_x$ksuse as select * from x$ksuse;
create view v_x$kslwt as select * from x$kslwt;
create view v_x$ksled as select * from x$ksled;
create synonym datadog.v_x$ksuse for v_x$ksuse;
create synonym datadog.v_x$kslwt for v_x$kslwt;
create synonym datadog.v_x$ksled for v_x$ksled;
and then create the dd_session
-view with these new views instead:
FROM
v_x$ksuse s,
v_x$kslwt w,
v_x$ksled e,
v$sql sq,
v$sql sq_prev,
v$containers c,
v$sqlcommand comm
WHERE
Then, the datadog
-user can successfully report the metrics.
Issue observed After installing the Oracle Integration, we do receive data from the instance via the Agent and the reported metrics are shown in the Datadog-provided "DBM Oracle Database Overview"-Dashboard:
However, we're missing data in these reports, as the dashboards show that some metrics are missing. In fact, the integration does query DBMS statistics, but does not report all of them back to the agent: https://github.com/DataDog/integrations-core/blob/master/oracle/datadog_checks/oracle/queries.py#L19
For example, the very important metric
User Transaction Per Sec
is not used by the integration.Our Oracle database can report the following metrics via
GV$SYSMETRIC
:It's probably easy to incorporate the additional metrics into the reporting.
Output of the info page Note: Our Agent in Kubernetes can't execute
s6-svstat
:Additional environment details (Operating System, Cloud provider, etc): We're running Agent (v7.50.2) in Azure Kubernetes, installed via Helm (Chart v3.50.2). We're using Oracle 19 for our RDBMS.
Steps to reproduce the issue:
Describe the results you received: The Oracle integration reports a few metrics
Describe the results you expected: The Oracle integration reports all metrics.
Additional information you deem important (e.g. issue happens only occasionally):