Skip to content
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

[oracle_weblogic] Add Integration Package with ThreadPool Data Stream #3189

Merged

Conversation

kush-elastic
Copy link
Collaborator

@kush-elastic kush-elastic commented Apr 25, 2022

  • Enhancement

What does this PR do?

  • Generated the skeleton of Oracle WebLogic integration package.
  • Added 1 data stream (ThreadPool).
  • Added data collection logic for the data streams.
  • Added the ingest pipeline for the data streams.
  • Mapped fields according to the ECS schema and added Fields metadata in the appropriate yaml files.
  • Added dashboards and visualizations.
  • Added system test cases for the data stream.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

How to test this PR locally

  • Clone integrations repo.
  • Install elastic-package locally.
  • Start elastic stack using elastic-package.
  • Move to integrations/packages/oracle_weblogic directory.
  • Run the following command to run tests.
    elastic-package test

Related issues

Screenshots

oracle_weblogic-threadpool-application

@elasticmachine
Copy link

elasticmachine commented Apr 25, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-06-06T04:59:26.883+0000

  • Duration: 24 min 19 sec

Test stats 🧪

Test Results
Failed 0
Passed 45
Skipped 0
Total 45

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@kush-elastic kush-elastic changed the title Add Integration Package with ThreadPool Data stream [oracle_weblogic] Add Integration Package with ThreadPool Data stream Apr 26, 2022
@kush-elastic kush-elastic changed the title [oracle_weblogic] Add Integration Package with ThreadPool Data stream [oracle_weblogic] Add Integration Package with ThreadPool Data Stream Apr 26, 2022
@andrewkroh andrewkroh added Team:Service-Integrations Label for the Service Integrations team New Integration labels Apr 27, 2022
@elasticmachine
Copy link

elasticmachine commented Apr 29, 2022

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (4/4) 💚
Files 100.0% (4/4) 💚 3.497
Classes 100.0% (4/4) 💚 3.497
Methods 100.0% (41/41) 💚 10.623
Lines 100.0% (239/239) 💚 9.209
Conditionals 100.0% (0/0) 💚

@kush-elastic kush-elastic added the enhancement New feature or request label May 3, 2022
@kush-elastic kush-elastic marked this pull request as ready for review May 30, 2022 07:10
@kush-elastic kush-elastic requested a review from a team as a code owner May 30, 2022 07:10
Copy link
Contributor

@yug-rajani yug-rajani left a comment

Choose a reason for hiding this comment

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

Requested some changes

Copy link
Contributor

@yug-rajani yug-rajani left a comment

Choose a reason for hiding this comment

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

LGTM!

User needs to [download](https://jolokia.org/download.html) and add the JAR file and set environment variables for Jolokia.

```
-javaagent:/home/oracle/jolokia-jvm-1.6.0-agent.jar=port=<Port>,host=<hostname>
Copy link
Contributor

Choose a reason for hiding this comment

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

You can include jolokia-jvm-1.6.0-agent.jar as an example. The phrase 'jolokia-jvm-1.6.0-agent.jar' gives a wrong impression of mandatory dependency. Please change it to a generate format with jolokia-jvm-1.6.0-agent.jar mentioned as an example


In order to ingest data from Oracle WebLogic:
- You must know the host for Oracle WebLogic application, add that host while configuring the integration package.
- Add default path for Jolokia.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please elaborate default path to...?

## Requirements

In order to ingest data from Oracle WebLogic:
- You must know the host for Oracle WebLogic application, add that host while configuring the integration package.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not a minimum requirement. It is a knowledge a user may need to have for configuring.

description: Number of stuck threads in the thread pool.
- name: total
type: long
description: Current number of live daemon and non-daemon threads.
Copy link
Contributor

Choose a reason for hiding this comment

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

It is a very tricky statement used in the documentation.

https://docs.oracle.com/cd/E17802_01/j2se/j2se/1.5.0/jcp/beta1/apidiffs/java/lang/management/ThreadMBean.html#getThreadCount()

It says 'including both both daemon and non-daemon threads'. The next line says : Return : the current number of live threads."

So, can there be any live threads that is not ( live daemon or non-deamon threads )?

If not sure, best is to change the description as either "Number of live threads" or "number of live threads including both daemon and non-daemon threads"

Copy link
Contributor

Choose a reason for hiding this comment

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

If the first option is selected, please change the singlestat panel title as "Live threads"

Copy link
Contributor

Choose a reason for hiding this comment

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

You may need to update below files

the

packages/oracle_weblogic/img/oracle_weblogic-threadpool.png
packages/oracle_weblogic/kibana/lens/oracle_weblogic-c31dabf0-c132-11ec-aaae-35e5cf8554e6.json

"layerType": "data"
}
},
"title": "Live Daemon and Non-Daemon Threads [Metrics Oracle WebLogic]",
Copy link
Contributor

Choose a reason for hiding this comment

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

Please refer to the previous comment

Copy link
Contributor

@agithomas agithomas left a comment

Choose a reason for hiding this comment

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

Looks good to me

@yug-rajani yug-rajani merged commit e9b93a1 into elastic:main Jun 6, 2022
@yug-rajani yug-rajani linked an issue Jun 7, 2022 that may be closed by this pull request
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Integration:oracle_weblogic New Integration Team:Service-Integrations Label for the Service Integrations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Oracle Weblogic Integration
5 participants