Daniel Jaglowski 40b485f08a Update core for v0.90.0 release (#29539) | 1 an în urmă | |
---|---|---|
.. | ||
internal | 1 an în urmă | |
testdata | 1 an în urmă | |
Makefile | 2 ani în urmă | |
README.md | 1 an în urmă | |
config.go | 1 an în urmă | |
config_test.go | 1 an în urmă | |
db_client.go | 1 an în urmă | |
doc.go | 1 an în urmă | |
documentation.md | 1 an în urmă | |
factory.go | 1 an în urmă | |
factory_test.go | 1 an în urmă | |
fake_db_client.go | 1 an în urmă | |
go.mod | 1 an în urmă | |
go.sum | 1 an în urmă | |
metadata.yaml | 1 an în urmă | |
scraper.go | 1 an în urmă | |
scraper_test.go | 1 an în urmă |
Status | |
---|---|
Stability | alpha: metrics |
Distributions | contrib, splunk |
Issues | |
Code Owners | @dmitryax, @crobert-1, @atoulme |
This receiver collects metrics from an Oracle Database.
The receiver connects to a database host and performs periodically queries.
To use the OracleDB receiver you must define how to connect to your DB. This can be done in two ways, defined in the Primary and Secondary configuration option sections. Defining one of the two configurations is required. If both are defined, the primary option will be used.
Required options:
datasource
: Oracle database connection string. Special characters must be encoded. Refer to Oracle Go Driver go_ora documentation for full connection string options.Example:
receivers:
oracledb:
datasource: "oracle://otel:password@localhost:51521/XE"
Required options:
endpoint
: Endpoint used to connect to the OracleDB server. Must be in the format of host:port
password
: Password for the OracleDB connection. Special characters are allowed.service
: OracleDB Service that the receiver should connect to.username
: Username for the OracleDB connection.Example:
receivers:
oracledb:
endpoint: localhost:51521
password: p@sswo%d
service: XE
username: otel
Depending on which metrics you collect, you will need to assign those permissions to the database user:
GRANT SELECT ON V_$SESSION TO <username>;
GRANT SELECT ON V_$SYSSTAT TO <username>;
GRANT SELECT ON V_$RESOURCE_LIMIT TO <username>;
GRANT SELECT ON DBA_TABLESPACES TO <username>;
GRANT SELECT ON DBA_DATA_FILES TO <username>;
See documentation.
You can enable or disable selective metrics.
Example:
receivers:
oracledb:
datasource: "oracle://otel:password@localhost:51521/XE"
metrics:
oracledb.query.cpu_time:
enabled: false
oracledb.query.physical_read_requests:
enabled: true