Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Permission (DBA_TABLESPACE_USAGE_METRICS ) in README.md of oracledbreceiver #32373

Closed
inola-ww opened this issue Apr 15, 2024 · 2 comments · Fixed by #32389
Closed

Missing Permission (DBA_TABLESPACE_USAGE_METRICS ) in README.md of oracledbreceiver #32373

inola-ww opened this issue Apr 15, 2024 · 2 comments · Fixed by #32389
Labels
bug Something isn't working documentation Improvements or additions to documentation receiver/oracledb

Comments

@inola-ww
Copy link

inola-ww commented Apr 15, 2024

Component(s)

oracledbreceiver

What happened?

Description

In the Documentation (receiver/oracledbreceiver/README.md), the grant for DBA_TABLESPACE_USAGE_METRICS is missing, but required (see receiver/oracledbreceiver/scraper.go, line 42)

Steps to Reproduce

Start Scraping oracle metrics

Expected Result

Tablespace Metrics are scraped.

Actual Result

collector logs:
error executing select um.TABLESPACE_NAME, um.USED_SPACE, um.TABLESPACE_SIZE, ts.BLOCK_SIZE FROM DBA_TABLESPACE_USAGE_METRICS um INNER JOIN DBA_TABLESPACES ts ON um.TABLESPACE_NAME = ts.TABLESPACE_NAME: ORA-00942: table or view does not exist

Collector version

0.98.0

Environment information

Environment

OS: Docker Image (otel/opentelemetry-collector-contrib:0.98.0)
DBMS: Oracle (ver. Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production Version 19.3.0.0.0)

OpenTelemetry Collector configuration

receivers:
  oracledb/mydb:
    endpoint: dbhost:1521
    service: dbservice

Log output

{"level":"error","ts":1713161036.1126792,"caller":"scraperhelper/scrapercontroller.go:197","msg":"Error scraping metrics","kind":"receiver","name":"oracledb/mydb","data_type":"metrics","error":"error executing \n\t\tselect um.TABLESPACE_NAME, um.USED_SPACE, um.TABLESPACE_SIZE, ts.BLOCK_SIZE\n\t\tFROM DBA_TABLESPACE_USAGE_METRICS um INNER JOIN DBA_TABLESPACES ts\n\t\tON um.TABLESPACE_NAME = ts.TABLESPACE_NAME: ORA-00942: table or view does not exist\n","scraper":"oracledb","stacktrace":"go.opentelemetry.io/collector/receiver/scraperhelper.(*controller).scrapeMetricsAndReport\n\tgo.opentelemetry.io/collector/[email protected]/scraperhelper/scrapercontroller.go:197\ngo.opentelemetry.io/collector/receiver/scraperhelper.(*controller).startScraping.func1\n\tgo.opentelemetry.io/collector/[email protected]/scraperhelper/scrapercontroller.go:173"}

Additional context

No response

@inola-ww inola-ww added bug Something isn't working needs triage New item requiring triage labels Apr 15, 2024
@crobert-1
Copy link
Member

My apologies, this is a result of #32028. I've filed #32389 to add the necessary documentation. Thanks for filing this issue!

@crobert-1 crobert-1 added documentation Improvements or additions to documentation receiver/oracledb and removed needs triage New item requiring triage labels Apr 15, 2024
Copy link
Contributor

Pinging code owners for receiver/oracledb: @dmitryax @crobert-1 @atoulme. See Adding Labels via Comments if you do not have permissions to add labels yourself.

dmitryax pushed a commit that referenced this issue Apr 16, 2024
**Description:** 
An additional permission is now required in some cases of running the
Oracle DB receiver, as a result of
#32028.
We should document it in the README.

I also upgraded this change to a breaking change to make it clear to
users that new permissions are needed.

**Link to tracking Issue:** Resolves #32373
rimitchell pushed a commit to rimitchell/opentelemetry-collector-contrib that referenced this issue May 8, 2024
…elemetry#32389)

**Description:** 
An additional permission is now required in some cases of running the
Oracle DB receiver, as a result of
open-telemetry#32028.
We should document it in the README.

I also upgraded this change to a breaking change to make it clear to
users that new permissions are needed.

**Link to tracking Issue:** Resolves open-telemetry#32373
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation receiver/oracledb
Projects
None yet
2 participants