Skip to content

[System] [Network] Add dimensions and clean up duplicated fields definition #6405

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

Merged

Conversation

tetianakravchenko
Copy link
Contributor

@tetianakravchenko tetianakravchenko commented May 31, 2023

What does this PR do?

This is a follow up PR of #6118 (comment)
In this PR:

  • added dimensions to the network data_stream: additionally to the default list of dimensions, must be added system.network.name
  • cleaned up duplicated fields

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.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
@tetianakravchenko tetianakravchenko requested a review from a team as a code owner May 31, 2023 13:42
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
@@ -195,26 +195,3 @@
example: "stretch"
description: >
OS codename, if any.

- name: network.in.bytes
Copy link
Contributor Author

Choose a reason for hiding this comment

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

those fields are repeated in fields/ twice: in agent.yml and in fields.yml

@@ -7,9 +7,6 @@
- name: data_stream.namespace
type: constant_keyword
description: Data stream namespace.
- name: '@timestamp'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -53,25 +54,25 @@
type: group
fields:
- name: network.in.bytes
type: scaled_float
Copy link
Contributor Author

Choose a reason for hiding this comment

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

see this comment for reference - #6118 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

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

My understanding based on the previous comments is that the only affect this has is on the docs page, everything else already had long. Correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I have the same understanding, all the host.network.in.*, host.network.out.* are of type long when instaling package:
Screenshot 2023-06-01 at 10 12 33

@elasticmachine
Copy link

elasticmachine commented May 31, 2023

💚 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-06-01T15:54:41.513+0000

  • Duration: 15 min 8 sec

Test stats 🧪

Test Results
Failed 0
Passed 145
Skipped 0
Total 145

🤖 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

elasticmachine commented May 31, 2023

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (3/3) 💚
Files 100.0% (4/4) 💚
Classes 100.0% (4/4) 💚
Methods 60.759% (48/79) 👎 -21.321
Lines 99.536% (2790/2803) 👍 2.501
Conditionals 100.0% (0/0) 💚

@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.30.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as other PR, conflicting version number?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed in 57547c7

Copy link
Contributor

@ruflin ruflin left a comment

Choose a reason for hiding this comment

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

Change LGTM.

But see my comment around package version.

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
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.

LGTM!

@tetianakravchenko tetianakravchenko merged commit 68dd768 into elastic:main Jun 5, 2023
@tetianakravchenko tetianakravchenko deleted the system-network-dimensions branch June 5, 2023 08:34
@elasticmachine
Copy link

Package system - 1.32.0-beta.1 containing this change is available at https://epr.elastic.co/search?package=system

sodhikirti07 pushed a commit that referenced this pull request Jun 15, 2023
…nition (#6405)

* add dimensions and clean up duplicated fields definition

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* fix pr link in changelog

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

---------

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants