Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .chloggen/feat_add-oracledb-session-jvm-os-metrics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Use this changelog template to create an entry for release notes.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: enhancement

# The name of the component, or a single word describing the area of concern, (e.g. receiver/filelog)
component: receiver/oracledb

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Add session, in-database JVM, and OS resource metrics sourced from the existing v$sysstat query.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
note: Add session, in-database JVM, and OS resource metrics sourced from the existing v$sysstat query.
note: Add session, in-database JVM, and OS resource metrics

The subtext provides enough context for the end user

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [49065]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext: |
Adds oracledb.session.non_idle.waits, oracledb.session.non_idle.time,
oracledb.session.stored_procedure.usage, oracledb.process.last_non_idle.time,
oracledb.java.heap.usage (attribute oracledb.java.heap.state), oracledb.os.cpu.time
(attribute oracledb.os.cpu.state), and oracledb.os.swaps. All are disabled by default and
add no new database queries.

# If your change doesn't affect end users or the exported elements of any package,
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
# Optional: The change log or logs in which this entry should be included.
# e.g. '[user]' or '[user, api]'
# Include 'user' if the change is relevant to end users.
# Include 'api' if there is a change to a library API.
# Default: '[user]'
change_logs: [user]
68 changes: 68 additions & 0 deletions receiver/oracledbreceiver/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,20 @@ Fraction of host CPU time in use, as computed by Oracle V$SYSMETRIC (% Busy/(Idl
| ---- | ----------- | ---------- | --------- |
| % | Gauge | Double | Development |

### oracledb.java.heap.usage

Size of Oracle's in-database JVM (OJVM) call heap in bytes. Sourced from v$sysstat names java call heap live size (oracledb.java.heap.state=live), java call heap total size (oracledb.java.heap.state=total), and java call heap used size (oracledb.java.heap.state=used).

| Unit | Metric Type | Value Type | Stability |
| ---- | ----------- | ---------- | --------- |
| By | Gauge | Int | Development |

#### Attributes

| Name | Description | Values | Requirement Level | Semantic Convention |
| ---- | ----------- | ------ | ----------------- | ------------------- |
| oracledb.java.heap.state | Which portion of the in-database JVM call heap the measurement reports (live, total, or used). | Str: ``live``, ``total``, ``used`` | Recommended | - |

### oracledb.library_cache.utilization

Fraction of library cache pin requests that found the object already cached, as computed by Oracle V$SYSMETRIC (% Hits/Pins).
Expand All @@ -343,6 +357,28 @@ Number of logon operations
| ---- | ----------- | ---------- | ----------------------- | --------- | --------- |
| {operation} | Sum | Int | Cumulative | true | Development |

### oracledb.os.cpu.time

Cumulative OS CPU time consumed, in seconds (converted from centiseconds), as accounted by Oracle. Sourced from v$sysstat names OS System time used (oracledb.os.cpu.state=system) and OS User time used (oracledb.os.cpu.state=user).

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | Stability |
| ---- | ----------- | ---------- | ----------------------- | --------- | --------- |
| s | Sum | Double | Cumulative | true | Development |

#### Attributes

| Name | Description | Values | Requirement Level | Semantic Convention |
| ---- | ----------- | ------ | ----------------- | ------------------- |
| oracledb.os.cpu.state | Whether the OS CPU time was consumed in system (kernel) or user mode, as accounted by Oracle. Mirrors the semconv system.cpu.state value set. | Str: ``system``, ``user`` | Recommended | - |

### oracledb.os.swaps

Number of OS swap operations, as accounted by Oracle. Sourced from v$sysstat name OS Swaps.

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | Stability |
| ---- | ----------- | ---------- | ----------------------- | --------- | --------- |
| {swaps} | Sum | Int | Cumulative | true | Development |

### oracledb.parallel_operations_downgraded_1_to_25_pct

Number of times parallel execution was requested and the degree of parallelism was reduced down to 1-25% because of insufficient parallel execution servers
Expand Down Expand Up @@ -491,6 +527,14 @@ Number of writes directly to disk, bypassing the buffer cache
| ---- | ----------- | ---------- | ----------------------- | --------- | --------- |
| {writes} | Sum | Int | Cumulative | true | Development |

### oracledb.process.last_non_idle.time

Epoch time in seconds at which the process was last active (non-idle), as reported by Oracle. Sourced from v$sysstat name process last non-idle time.

| Unit | Metric Type | Value Type | Stability |
| ---- | ----------- | ---------- | --------- |
| s | Gauge | Int | Development |

### oracledb.queries_parallelized

Number of SELECT statements executed in parallel
Expand All @@ -515,6 +559,30 @@ Fraction of redo allocations that succeeded without space contention, as compute
| ---- | ----------- | ---------- | --------- |
| % | Gauge | Double | Development |

### oracledb.session.non_idle.time

Cumulative time sessions spent in non-idle waits, in seconds (converted from centiseconds). Sourced from v$sysstat name non-idle wait time.

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | Stability |
| ---- | ----------- | ---------- | ----------------------- | --------- | --------- |
| s | Sum | Double | Cumulative | true | Development |

### oracledb.session.non_idle.waits

Cumulative number of non-idle waits across sessions. Sourced from v$sysstat name non-idle wait count.

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | Stability |
| ---- | ----------- | ---------- | ----------------------- | --------- | --------- |
| {waits} | Sum | Int | Cumulative | true | Development |

### oracledb.session.stored_procedure.usage

Memory in bytes currently allocated for stored procedures in the session. Sourced from v$sysstat name session stored procedure space.

| Unit | Metric Type | Value Type | Stability |
| ---- | ----------- | ---------- | --------- |
| By | Gauge | Int | Development |

### oracledb.shared_pool.utilization

Fraction of the shared pool that is currently free, as computed by Oracle V$SYSMETRIC (% Free/Total). Low values indicate shared pool pressure.
Expand Down
Loading
Loading