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

Migrate obs-infraobs-integrations to package-spec v3 #4 #8216

Merged

Conversation

shmsr
Copy link
Member

@shmsr shmsr commented Oct 16, 2023

Thanks to this PR #8050 and @tommyers-elastic , could migrate 4 more packages

  • azure_app_service
  • citrix_adc
  • redis
  • tomcat

ECS dictates that that certain fields (geo, interface, os) should be nested and package validations were failing with these fields defined at root level. So from ecs.yml they are moved to fields.yml

Also refer: https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html

Proposed commit message

Migrate the following package to use package-spec v3:

  • azure_app_service
  • citrix_adc
  • redis
  • tomcat

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.

The format_version in the package manifest changed from 2.8.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.

[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -fix-dotted-yaml-keys -add-owner-type packages/azure_app_service
The format_version in the package manifest changed from 2.0.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.

[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -fix-dotted-yaml-keys -add-owner-type packages/citrix_adc
The format_version in the package manifest changed from 1.0.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.

[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -fix-dotted-yaml-keys -add-owner-type packages/redis
The format_version in the package manifest changed from 1.0.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.

[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -fix-dotted-yaml-keys -add-owner-type packages/tomcat
@elasticmachine
Copy link

💚 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: 2023-10-16T19:10:44.145+0000

  • Duration: 19 min 4 sec

Test stats 🧪

Test Results
Failed 0
Passed 66
Skipped 0
Total 66

🤖 GitHub comments

Expand to view the GitHub comments

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

  • /test : Re-trigger the build.

@elasticmachine
Copy link

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (8/8) 💚
Files 93.333% (14/15) 👎 -6.667
Classes 93.333% (14/15) 👎 -6.667
Methods 85.294% (87/102) 👍 57.516
Lines 92.599% (1514/1635) 👎 -7.401
Conditionals 100.0% (0/0) 💚

@@ -227,3 +227,11 @@
description: Number of bytes transmitted by an interface since the NetScaler appliance was started or the interface statistics were cleared.
metric_type: counter
unit: byte
# The following `interface` mappings are not allowed at root level in ECS, and are defined here for backward compatibility.
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

Copy link
Contributor

@tommyers-elastic tommyers-elastic left a comment

Choose a reason for hiding this comment

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

awesome - LGTM. thanks!

@tommyers-elastic tommyers-elastic merged commit 225555f into elastic:main Oct 18, 2023
4 checks passed
@elasticmachine
Copy link

Package azure_app_service - 0.1.0 containing this change is available at https://epr.elastic.co/search?package=azure_app_service

@elasticmachine
Copy link

Package citrix_adc - 1.1.0 containing this change is available at https://epr.elastic.co/search?package=citrix_adc

@elasticmachine
Copy link

Package redis - 1.12.0 containing this change is available at https://epr.elastic.co/search?package=redis

@elasticmachine
Copy link

Package tomcat - 1.10.0 containing this change is available at https://epr.elastic.co/search?package=tomcat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants