[oracle] Enhancement to capture system statistics metrics, pga metrics, sga metrics - #3967
Conversation
…trics. Added dashboard to capture performance metrics, system statistics metrics, pga and sga metrics.
🌐 Coverage report
|
ishleenk17
left a comment
There was a problem hiding this comment.
ECS and base fields not present in performance data stream
ishleenk17
left a comment
There was a problem hiding this comment.
IIRC, SQL has flexibility of letting the user choose which field they want to retrive from a table in DB.
Would that be inherited by oracle as well since its using sql metrics ?
dynamic_metric_name_filter feature is present to permit the user to configure based on his / her requirements |
It is present. But, you won't find in the Files Changed. We already have Performance data stream and this time we are extending it. base-fields.yml and ecs.yml files were added earlier. |
|
@efd6 , all the issues highlighted are fixed. Kindly review |
efd6
left a comment
There was a problem hiding this comment.
After nit this LGTM. The oracle SQL should probably also be checked by another; it looks OK to this non-expert.
Co-authored-by: Dan Kortschak <90160302+efd6@users.noreply.github.com>
|
Can we realign the dashboard packages/oracle/img/Oracle-system_statistics-dashboard.png and remove the extra gap after Inactive session count > 1hr. |
Corrected. |
| - query: select WAIT_CLASS, TOTAL_WAITS, round(100 * (TOTAL_WAITS / SUM_WAITS),2) PCT_WAITS, ROUND((TIME_WAITED / 100),2) TIME_WAITED_SECS, round(100 * (TIME_WAITED / SUM_TIME),2) PCT_TIME from (select WAIT_CLASS, TOTAL_WAITS, TIME_WAITED from V$SYSTEM_WAIT_CLASS where WAIT_CLASS != 'Idle'), (select sum(TOTAL_WAITS) SUM_WAITS, sum(TIME_WAITED) SUM_TIME from V$SYSTEM_WAIT_CLASS where WAIT_CLASS != 'Idle') order by 5 desc | ||
| response_format: table | ||
|
|
||
|
No newline at end of file |
There was a problem hiding this comment.
How many documents are created by these queries? Should we add request_merge flag? This question applies to all the oracle data streams.
There was a problem hiding this comment.
pga_sga : 2
sysmetric : 1
system_statistics : 1
There is a scope of improvement in performance datastream (part of 8.4) which has 7 queries.
There was a problem hiding this comment.
As per the discussion, a separate PR will be created for this as 8.4.0 features are needed, changing min kibana version to 8.4.0 for this integration
| unit: percent | ||
| metric_type: gauge | ||
| description: Percentage of time waits that are not Idle wait class. | ||
| - name: pct_waits |
There was a problem hiding this comment.
should we remove "wait" for last field names. Need to think if having these in the names better since the group name is "wait"?
There was a problem hiding this comment.
- name: pct_time
type: double
unit: percent
metric_type: gauge
description: Percentage of time waits that are not Idle wait class.
- name: pct_waits
type: double
unit: percent
metric_type: gauge
description: Percentage of number of pct time waits that are not of Idle wait class.
Cannot remove wait because, it will lead to conflicts / confusions
| ignore_failure: true | ||
| - rename: | ||
| field: oracle.performance.pct_time | ||
| target_field: oracle.performance.wait.pct_time |
There was a problem hiding this comment.
Can we make sure these oracle.performance.wait.* fields are there in the sample events? also I am not able to locate them in the README file also.
🚀 Benchmarks reportTo see the full report comment with |
|
@lalit-satapathy , @muthu-mps , @efd6 , Can you please help reviewing the recent change and approve the PR? From your last review, below changes are made
|
| - name: oracle | ||
| title: Oracle Audit Logs | ||
| description: Collect Oracle Audit logs, Performance metrics, Tablespace metrics, Sysmetrics integration | ||
| description: Collect Oracle Audit logs, Performance metrics, Tablespace metrics, Sysmetrics integration, System statistics, memory metrics. |
There was a problem hiding this comment.
memory metric M. Can we make this to camel case ?
| - rename: | ||
| field: oracle.metrics | ||
| target_field: oracle.memory | ||
| ignore_missing: true |
There was a problem hiding this comment.
Do you consider adding ignore_failure for rest of the fields ? Because the other datastreams has ignore_failure for all the fields.
…s, sga metrics (elastic#3967) * Enhancement to capture system statistics metrics, pga metrics, sga metrics. Added dashboard to capture performance metrics, system statistics metrics, pga and sga metrics. * Added dashboard images, fixed sample files * Fixes based on review comments * Changes made to support the field_name changes * Fixed the issue number * Update packages/oracle/changelog.yml Co-authored-by: Dan Kortschak <90160302+efd6@users.noreply.github.com> * Correct field mapping description * Made adjustments to field names * Modified field names * Static testing fixes * Field mapping changes made * Fixed README file issues * Changed datastream name from pga_stat to memory * Renamed pga-sga to memory. Added screenshot * Modified dashboard to support field name changes * Added new dashboard screenshot * Fixed dashboard compatibility issue, typo issues * Removed empty line * Added additional documentation Co-authored-by: Dan Kortschak <90160302+efd6@users.noreply.github.com>
Enhancement to capture system statistics metrics, pga metrics, sga metrics.
Type of change
What does this PR do?
Checklist
changelog.ymlfile.How to test this PR locally
docker run -d --name oracle -p 1521:1521 -p 5500:5500 docker.elastic.co/observability-ci/database-enterprise:12.2.0.1Related issues
Screenshots