To collect metrics from OracleDB, a user with SELECT access to the relevant views is required. To create a new user with those permissions, run the following SQL script as a user with sufficient permissions connected to the Oracle DB instance as SYSDBA or SYSOPER.
sql
1-- Create the monitoring user "bindplane"2CREATEUSER bindplane IDENTIFIED BY<authentication password>;34-- Grant the "bindplane" user the required permissions5GRANTCONNECTTO bindplane;6GRANTSELECTON SYS.GV_$DATABASEto bindplane;7GRANTSELECTON SYS.GV_$INSTANCE to bindplane;8GRANTSELECTON SYS.GV_$PROCESS to bindplane;9GRANTSELECTON SYS.GV_$RESOURCE_LIMIT to bindplane;10GRANTSELECTON SYS.GV_$SYSMETRIC to bindplane;11GRANTSELECTON SYS.GV_$SYSSTAT to bindplane;12GRANTSELECTON SYS.GV_$SYSTEM_EVENT to bindplane;13GRANTSELECTON SYS.V_$RMAN_BACKUP_JOB_DETAILS to bindplane;14GRANTSELECTON SYS.V_$SORT_SEGMENT to bindplane;15GRANTSELECTON SYS.V_$TABLESPACEto bindplane;16GRANTSELECTON SYS.V_$TEMPFILE to bindplane;17GRANTSELECTON SYS.DBA_DATA_FILES to bindplane;18GRANTSELECTON SYS.DBA_FREE_SPACE to bindplane;19GRANTSELECTON SYS.DBA_TABLESPACE_USAGE_METRICS to bindplane;20GRANTSELECTON SYS.DBA_TABLESPACES to bindplane;21GRANTSELECTON SYS.GLOBAL_NAME to bindplane;
Configuration Table
Parameter
Type
Default
Description
enable_metrics
bool
true
Enable to collect metrics.
host
string
localhost
Host to scrape metrics from.
port
int
1521
Port of the host to scrape metrics from.
username*
string
Database user to run metric queries with.
password
string
Password for user.
sid
string
Site Identifier. One or both of sid or service_name must be specified.
service_name
string
OracleDB Service Name. One or both of sid or service_name must be specified.
wallet
string
OracleDB Wallet file location (must be URL encoded).