Skip to content

Commit 274a713

Browse files
ccressentLucianoGiannotti
authored andcommitted
Add parallel operations metrics to oracledb receiver (open-telemetry#39215)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description This PR adds the following metrics to the `oracledb` receiver: - '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%)' They are all disabled by default. <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue N/A <!--Describe what testing was performed and which tests were added.--> #### Testing Manual testing. <!--Describe the documentation added.--> #### Documentation Automatically generated by `mdatagen` for each metric. <!--Please delete paragraphs that you did not use before submitting.-->
1 parent 258bbd2 commit 274a713

File tree

9 files changed

+1344
-227
lines changed

9 files changed

+1344
-227
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: enhancement
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
7+
component: oracledbreceiver
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Add support for parallel operations metrics
11+
12+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13+
issues: [39215]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext: |
19+
The following metrics are now available, all disabled by default:
20+
- 'DDL statements parallelized'
21+
- 'DML statements parallelized'
22+
- 'Parallel operations not downgraded'
23+
- 'Parallel operations downgraded to serial'
24+
- 'Parallel operations downgraded (1-25%)'
25+
- 'Parallel operations downgraded (25-50%)'
26+
- 'Parallel operations downgraded (50-75%)'
27+
- 'Parallel operations downgraded (75-99%)'
28+
29+
# If your change doesn't affect end users or the exported elements of any package,
30+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
31+
# Optional: The change log or logs in which this entry should be included.
32+
# e.g. '[user]' or '[user, api]'
33+
# Include 'user' if the change is relevant to end users.
34+
# Include 'api' if there is a change to a library API.
35+
# Default: '[user]'
36+
change_logs: [user]

receiver/oracledbreceiver/documentation.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,70 @@ Number of times a current block was requested from the buffer cache.
257257
| ---- | ----------- | ---------- | ----------------------- | --------- |
258258
| {gets} | Sum | Int | Cumulative | true |
259259
260+
### oracledb.ddl_statements_parallelized
261+
262+
Number of DDL statements that were executed in parallel
263+
264+
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
265+
| ---- | ----------- | ---------- | ----------------------- | --------- |
266+
| {statements} | Sum | Int | Cumulative | true |
267+
268+
### oracledb.dml_statements_parallelized
269+
270+
Number of DML statements that were executed in parallel
271+
272+
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
273+
| ---- | ----------- | ---------- | ----------------------- | --------- |
274+
| {statements} | Sum | Int | Cumulative | true |
275+
276+
### oracledb.parallel_operations_downgraded_1_to_25_pct
277+
278+
Number of times parallel execution was requested and the degree of parallelism was reduced down to 1-25% because of insufficient parallel execution servers
279+
280+
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
281+
| ---- | ----------- | ---------- | ----------------------- | --------- |
282+
| {executions} | Sum | Int | Cumulative | true |
283+
284+
### oracledb.parallel_operations_downgraded_25_to_50_pct
285+
286+
Number of times parallel execution was requested and the degree of parallelism was reduced down to 25-50% because of insufficient parallel execution servers
287+
288+
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
289+
| ---- | ----------- | ---------- | ----------------------- | --------- |
290+
| {executions} | Sum | Int | Cumulative | true |
291+
292+
### oracledb.parallel_operations_downgraded_50_to_75_pct
293+
294+
Number of times parallel execution was requested and the degree of parallelism was reduced down to 50-75% because of insufficient parallel execution servers
295+
296+
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
297+
| ---- | ----------- | ---------- | ----------------------- | --------- |
298+
| {executions} | Sum | Int | Cumulative | true |
299+
300+
### oracledb.parallel_operations_downgraded_75_to_99_pct
301+
302+
Number of times parallel execution was requested and the degree of parallelism was reduced down to 75-99% because of insufficient parallel execution servers
303+
304+
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
305+
| ---- | ----------- | ---------- | ----------------------- | --------- |
306+
| {executions} | Sum | Int | Cumulative | true |
307+
308+
### oracledb.parallel_operations_downgraded_to_serial
309+
310+
Number of times parallel execution was requested but execution was serial because of insufficient parallel execution servers
311+
312+
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
313+
| ---- | ----------- | ---------- | ----------------------- | --------- |
314+
| {executions} | Sum | Int | Cumulative | true |
315+
316+
### oracledb.parallel_operations_not_downgraded
317+
318+
Number of times parallel execution was executed at the requested degree of parallelism
319+
320+
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
321+
| ---- | ----------- | ---------- | ----------------------- | --------- |
322+
| {executions} | Sum | Int | Cumulative | true |
323+
260324
### oracledb.physical_read_io_requests
261325
262326
Number of read requests for application activity
@@ -297,6 +361,14 @@ Number of writes directly to disk, bypassing the buffer cache
297361
| ---- | ----------- | ---------- | ----------------------- | --------- |
298362
| {writes} | Sum | Int | Cumulative | true |
299363
364+
### oracledb.queries_parallelized
365+
366+
Number of SELECT statements executed in parallel
367+
368+
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
369+
| ---- | ----------- | ---------- | ----------------------- | --------- |
370+
| {queries} | Sum | Int | Cumulative | true |
371+
300372
## Resource Attributes
301373
302374
| Name | Description | Values | Enabled |

receiver/oracledbreceiver/internal/metadata/generated_config.go

Lines changed: 68 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)