Daniel Jaglowski 40b485f08a Update core for v0.90.0 release (#29539) 1 年間 前
..
internal 91643ba261 [mdatagen] allow adding resource_attribute warnings (#27257) 1 年間 前
testdata dbdd5bd22e [receiver/oracledb] Add a simpler alternative for configuration (#22086) 1 年間 前
Makefile 3a59b75634 [receiver/oracledbreceiver] New oracle DB receiver (#14316) 2 年 前
README.md 562dc48d10 Link component issue badges to the respective issue page (#24642) 1 年間 前
config.go 44c8882012 [chore] update linter version (#22983) 1 年間 前
config_test.go 158ee0e040 [chore] Update tests to include scraper settings (#24653) 1 年間 前
db_client.go f4c44858b5 [all][chore] Moved from interface{} to any for all go code (#29072) 1 年間 前
doc.go 5133f4ccd6 [chore] use license shortform (#22052) 1 年間 前
documentation.md b00fac64e8 [chore] use status type in oracledb receiver (#21284) 1 年間 前
factory.go dbdd5bd22e [receiver/oracledb] Add a simpler alternative for configuration (#22086) 1 年間 前
factory_test.go 2f0089fec4 [chore] update collector core (#29122) 1 年間 前
fake_db_client.go 5133f4ccd6 [chore] use license shortform (#22052) 1 年間 前
go.mod 40b485f08a Update core for v0.90.0 release (#29539) 1 年間 前
go.sum 40b485f08a Update core for v0.90.0 release (#29539) 1 年間 前
metadata.yaml 326d0261f9 [cmd/mdatagen] Rename aggregation to aggregation_temporality for sum metrics (#24808) 1 年間 前
scraper.go 29ea5a964d [cmd/mdatagen] Avoid reusing the same ResourceBuilder instance (#24762) 1 年間 前
scraper_test.go 29ea5a964d [cmd/mdatagen] Avoid reusing the same ResourceBuilder instance (#24762) 1 年間 前

README.md

Oracle DB receiver

Status
Stability alpha: metrics
Distributions contrib, splunk
Issues Open issues Closed 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.

Getting Started

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.

Primary Configuration Option

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"

Secondary Configuration Option

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

Permissions

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>;

Enabling metrics.

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