Configure the Splunk Distribution of OpenTelemetry Collector to collect metrics and events from your Oracle Database instance.
Splunk Database Monitoring supports these Oracle Database versions and platforms:
Note: For Oracle RAC deployments, you must set up a connection to each node in the cluster separately.
- Deploy a supported OpenTelemetry collector if it's not already deployed.
- Configure the
oracledb receiver to collect infrastructure metrics from your Oracle Database instance.
- Give the following permissions to the Oracle Database user:
-
Self-hosted Oracle Database
-
GRANT SELECT ON V_$SQL TO username;
GRANT SELECT ON V_$SQL_PLAN TO username;
GRANT SELECT ON DBA_PROCEDURES TO username;
-
AWS RDS Oracle Database
-
EXEC rdsadmin.rdsadmin_util.grant_sys_object('V_$SQL', 'username', 'SELECT', p_grant_option => FALSE);
EXEC rdsadmin.rdsadmin_util.grant_sys_object('V_$SQL_PLAN', 'username', 'SELECT', p_grant_option => FALSE);
EXEC rdsadmin.rdsadmin_util.grant_sys_object('DBA_PROCEDURES', 'username', 'SELECT', p_grant_option => FALSE);
- Enable Database Monitoring by modifying your OpenTelemetry Collector configuration.
- In your collector's YAML file, add additional configuration to the
oracledb receiver:
The example below shows the minimum required configuration, but you can add other options. See the community (OSS) OpenTelemetry Collector oracledb README.
Important:
In the Splunk Distribution of OpenTelemetry Collector, the following oracledb options have default values that are sufficient for database monitoring needs:
The Splunk Distribution of OpenTelemetry Collector uses carefully selected default values to support database monitoring without affecting the performance of the database or the collector. If you increase these values you might adversely affect the performance of your database or collector, and this could result in ingest throttling.
receivers:
oracledb:
...
events:
db.server.query_sample:
enabled: true
db.server.top_query:
enabled: true
- Add an additional exporter named
dbmon.
exporters:
otlphttp/dbmon:
headers:
X-SF-Token: your-splunk-access-token
X-splunk-instrumentation-library: dbmon
logs_endpoint: https://ingest.<your-splunk-realm>.signalfx.com/v3/event
sending_queue:
batch:
flush_timeout: 15s
max_size: 10485760 # 10 MiB
sizer: bytes
- Add a new logs pipeline named
dbmon.
Important:
About the processors section:
Use identical processors for both your metrics and your logs/dbmon pipelines, and include these processors in the same order. For example, if you use memory_limiter, and k8sattributes, batch processors in your metrics pipeline, use the same combination and order for your logs/dbmon pipeline.
service:
pipelines:
logs/dbmon:
receivers:
- oracledb
processors:
- memory_limiter
- batch
exporters:
- otlphttp/dbmon
- Restart the collector.
The command to restart the collector varies depending on which collector you deployed, which platform you deployed it on, and what tool you used to deploy it. For the Splunk Distribution of the OpenTelemetry Collector deployed on Kubernetes platforms with Helm, the restart command is:
helm upgrade your-splunk-otel-collector splunk-otel-collector-chart/splunk-otel-collector -f your-override-values.yaml
where
splunk-otel-collector-chart is the name you gave to the Helm chart in the
helm repo add splunk-otel-collector-chart https://signalfx.github.io/splunk-otel-collector-chart command.
Your Oracle Database instance should now be visible as a datastore in Splunk IM ()