Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

sunny-elastic
Copy link
Contributor

@sunny-elastic sunny-elastic commented Apr 3, 2022

What does this PR do?

  • Generated the skeleton of Spring Boot integration package.
  • Added Httptrace data stream
  • Added data collection logic.
  • Added the ingest pipelines.
  • Mapped fields according to the ECS schema and added Fields metadata in the appropriate yml files.
  • Added system test cases.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that Httptrace data stream collect logs.
  • I have added an entry to my package's changelog.yml file.
  • If I'm introducing a new feature, I have modified the Kibana version constraint in my package's manifest.yml file to point to the latest Elastic stack release (e.g. ^8.0.0).

How to test this PR locally

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

elastic-package test

Note: We have covered dashboards and the visualisations for all data streams of spring boot into separate PR. Also Kibana version will be updated to 8.1.0 in manifest.yml after testing this integration on 8.1.0.

@sunny-elastic sunny-elastic requested a review from a team as a code owner April 3, 2022 07:49
@elasticmachine
Copy link

elasticmachine commented Apr 3, 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-04-15T17:55:29.656+0000

  • Duration: 14 min 58 sec

Test stats 🧪

Test Results
Failed 0
Passed 10
Skipped 0
Total 10

🤖 GitHub comments

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

  • /test : Re-trigger the build.

@sunny-elastic sunny-elastic requested a review from mtojek April 3, 2022 08:16
@sunny-elastic sunny-elastic self-assigned this Apr 3, 2022
@sunny-elastic sunny-elastic added enhancement New feature or request Team:Integrations Label for the Integrations team New Integration Issue or pull request for creating a new integration package. labels Apr 3, 2022
@elasticmachine
Copy link

Pinging @elastic/integrations (Team:Integrations)

@mtojek mtojek requested a review from ruflin April 4, 2022 09:35
@@ -0,0 +1 @@
{"timestamp":"2022-03-04T16:05:16.022Z","principal":null,"session":null,"request":{"method":"GET","uri":"http://10.0.14.124:8090/actuator/jolokia/read/java.lang:name=PS%20Old%20Gen,type=MemoryPool/Usage,UsageThresholdCount,UsageThresholdSupported,UsageThreshold,UsageThresholdExceeded,PeakUsage,CollectionUsage,CollectionUsageThresholdCount,CollectionUsageThreshold,CollectionUsageThresholdSupported,CollectionUsageThresholdExceeded,Name,Type,Valid?ignoreErrors=true&canonicalNaming=false","headers":{"host":["10.0.14.124:8090"],"accept-encoding":["gzip"],"user-agent":["Elastic-Metricbeat/8.0.0 (linux; amd64; 2ab3a7334016f570e0bfc7e9a577a35a22e02df5; 2022-02-03 18:14:06 +0000 UTC)"]},"remoteAddress":null},"response":{"status":200,"headers":{"Transfer-Encoding":["chunked"],"X-Frame-Options":["DENY"],"Cache-Control":["no-cache"],"X-Content-Type-Options":["nosniff"],"Set-Cookie":["JSESSIONID=290A264B870BB15FF8DDB6B91D098A8D; Path=/; HttpOnly"],"Expires":["Fri, 04 Mar 2022 15:05:16 GMT"],"Pragma":["no-cache"],"X-XSS-Protection":["1; mode=block"],"Date":["Fri, 04 Mar 2022 16:05:16 GMT"],"Content-Type":["text/plain;charset=utf-8"]}},"timeTaken":1} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please use a test where fields are not null values? We will be sure that we process values correctly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah its updated.

@sunny-elastic sunny-elastic requested a review from a team as a code owner April 14, 2022 17:19
@sunny-elastic sunny-elastic requested a review from mtojek April 14, 2022 18:09
Copy link
Contributor

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

Just a formal thing.

# newer versions go on top
- version: "0.1.0"
changes:
- description: Initial draft of the package
Copy link
Contributor

Choose a reason for hiding this comment

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

Since you've already merged the skeleton, it would be good to add a separate entry to the changelog for this data stream. Please also bump up the version in manifest.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah its done

@sunny-elastic sunny-elastic requested a review from mtojek April 15, 2022 17:54
@mtojek mtojek merged commit 82a7f45 into elastic:main Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request New Integration Issue or pull request for creating a new integration package. Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants