-
Notifications
You must be signed in to change notification settings - Fork 474
[oracle] Enhancement to capture system statistics metrics, pga metrics, sga metrics #3967
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
Conversation
…trics. Added dashboard to capture performance metrics, system statistics metrics, pga and sga metrics.
🌐 Coverage report
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ECS and base fields not present in performance data stream
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
packages/oracle/data_stream/system_statistics/fields/fields.yml
Outdated
Show resolved
Hide resolved
Corrected. |
response_format: table | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
packages/oracle/data_stream/system_statistics/fields/fields.yml
Outdated
Show resolved
Hide resolved
🚀 Benchmarks reportTo see the full report comment with |
packages/oracle/data_stream/performance/agent/stream/stream.yml.hbs
Outdated
Show resolved
Hide resolved
@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
|
@@ -19,7 +48,7 @@ icons: | |||
policy_templates: | |||
- 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you consider adding ignore_failure for rest of the fields ? Because the other datastreams has ignore_failure for all the fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Enhancement to capture system statistics metrics, pga metrics, sga metrics.
Type of change
What does this PR do?
Checklist
changelog.yml
file.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.1
Related issues
Screenshots