Skip to content

MongoDB: Enable ECS dependency #1171

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
merged 5 commits into from
Jun 23, 2021
Merged

Conversation

mtojek
Copy link
Contributor

@mtojek mtojek commented Jun 22, 2021

What does this PR do?

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.
    - [ ] 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. ^7.13.0).

How to test this PR locally

CI will verify if the integration works correctly.

Issues

@mtojek mtojek self-assigned this Jun 22, 2021
@@ -1,9 +1,7 @@
- name: ecs.version
type: keyword
description: ECS version
external: ecs
- name: service.address
type: keyword
description: Service address
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fun fact: isn't service.address defined in ECS schema?

Copy link
Member

Choose a reason for hiding this comment

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

Interesting, then maybe a different field should be used here? Maybe server.address.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I replied to the comment below:

I'm not sure about consistency with Beats in this case, but it seems like a good candidate to the ECS repository. Should I open an issue in the ECS repo?

@elasticmachine
Copy link

elasticmachine commented Jun 22, 2021

💚 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

Expand to view the summary

Build stats

  • Build Cause: Pull request #1171 updated

  • Start Time: 2021-06-23T10:11:17.117+0000

  • Duration: 16 min 48 sec

  • Commit: feae2ce

Test stats 🧪

Test Results
Failed 0
Passed 29
Skipped 0
Total 29

Trends 🧪

Image of Build Times

Image of Tests

@mtojek mtojek marked this pull request as ready for review June 22, 2021 12:56
@mtojek mtojek requested a review from jsoriano June 22, 2021 12:56
@mtojek mtojek mentioned this pull request Jun 22, 2021
10 tasks
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "0.5.0"
Copy link
Member

Choose a reason for hiding this comment

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

I haven't promoted 0.4.0 yet, so this can go to this version.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, revision 0.4.0 has been already released to snapshot, so this version is "burnt". I updated the changelog to 0.4.1-next to prevent releasing this change immediately after merge.

In general the package is copied to the package-storage whenever an unreleased version is detected in package manifest.

Copy link
Member

Choose a reason for hiding this comment

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

Oh ok, I didn't know about this, I thought they needed to be explicitly promoted.

Then we have the problem of not knowing what is released as 0.4.0 in snapshot, as I added the two enhancements in two different PRs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems that 0.4.0 contains only: https://github.com/elastic/package-storage/blob/snapshot/packages/mongodb/0.4.0/changelog.yml#L4

Would you like me to promote this PR as 0.5.0, so it will include also the other PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We agreed offline to go with 0.5.0

@@ -1,9 +1,7 @@
- name: ecs.version
type: keyword
description: ECS version
external: ecs
- name: service.address
type: keyword
description: Service address
Copy link
Member

Choose a reason for hiding this comment

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

Interesting, then maybe a different field should be used here? Maybe server.address.

@mtojek
Copy link
Contributor Author

mtojek commented Jun 22, 2021

Interesting, then maybe a different field should be used here? Maybe server.address.

I'm not sure about consistency with Beats in this case, but it seems like a good candidate to the ECS repository. Should I open an issue in the ECS repo?

@mtojek mtojek requested a review from jsoriano June 23, 2021 07:26
@jsoriano
Copy link
Member

I'm not sure about consistency with Beats in this case, but it seems like a good candidate to the ECS repository. Should I open an issue in the ECS repo?

Yes, I think we should clarify this.

For example in this issue elastic/beats#8941 it seems to be assumed that this is an ECS field, but in beats it is still defined as a common field in Metricbeat. And I see that many other integrations have it in ecs.yml too.

In other beats server.address is used instead, so I am leaned to think that this is more an issue in Metricbeat (and the data streams that depend on it).

I also understand that service.address and server.address can be redundant, so service.address may not fit in ECS.

Copy link
Member

@jsoriano jsoriano left a comment

Choose a reason for hiding this comment

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

LGTM, no need to solve the service.address mistery here.

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.

3 participants