Skip to content

Add parallel operations metrics to oracledb receiver #39215

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
36 changes: 36 additions & 0 deletions .chloggen/oracledb-parallel-ops-metrics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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. filelogreceiver)
component: oracledbreceiver

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Add support for parallel operations metrics

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

# (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: |
The following metrics are now available, all disabled by default:
- 'DDL statements parallelized'
- 'DML statements parallelized'
- 'Parallel operations not downgraded'
- 'Parallel operations downgraded to serial'
- 'Parallel operations downgraded (1-25%)'
- 'Parallel operations downgraded (25-50%)'
- 'Parallel operations downgraded (50-75%)'
- 'Parallel operations downgraded (75-99%)'

# 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]
72 changes: 72 additions & 0 deletions receiver/oracledbreceiver/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,70 @@ Number of times a current block was requested from the buffer cache.
| ---- | ----------- | ---------- | ----------------------- | --------- |
| {gets} | Sum | Int | Cumulative | true |

### oracledb.ddl_statements_parallelized

Number of DDL statements that were executed in parallel

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| {statements} | Sum | Int | Cumulative | true |

### oracledb.dml_statements_parallelized

Number of DML statements that were executed in parallel

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| {statements} | Sum | Int | Cumulative | true |

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

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| {executions} | Sum | Int | Cumulative | true |

### oracledb.parallel_operations_downgraded_25_to_50_pct

Number of times parallel execution was requested and the degree of parallelism was reduced down to 25-50% because of insufficient parallel execution servers

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| {executions} | Sum | Int | Cumulative | true |

### oracledb.parallel_operations_downgraded_50_to_75_pct

Number of times parallel execution was requested and the degree of parallelism was reduced down to 50-75% because of insufficient parallel execution servers

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| {executions} | Sum | Int | Cumulative | true |

### oracledb.parallel_operations_downgraded_75_to_99_pct

Number of times parallel execution was requested and the degree of parallelism was reduced down to 75-99% because of insufficient parallel execution servers

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| {executions} | Sum | Int | Cumulative | true |

### oracledb.parallel_operations_downgraded_to_serial

Number of times parallel execution was requested but execution was serial because of insufficient parallel execution servers

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| {executions} | Sum | Int | Cumulative | true |

### oracledb.parallel_operations_not_downgraded

Number of times parallel execution was executed at the requested degree of parallelism

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| {executions} | Sum | Int | Cumulative | true |

### oracledb.physical_read_io_requests

Number of read requests for application activity
Expand Down Expand Up @@ -297,6 +361,14 @@ Number of writes directly to disk, bypassing the buffer cache
| ---- | ----------- | ---------- | ----------------------- | --------- |
| {writes} | Sum | Int | Cumulative | true |

### oracledb.queries_parallelized

Number of SELECT statements executed in parallel

| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| {queries} | Sum | Int | Cumulative | true |

## Resource Attributes

| Name | Description | Values | Enabled |
Expand Down
100 changes: 68 additions & 32 deletions receiver/oracledbreceiver/internal/metadata/generated_config.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading