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

Make elasticsearch/enrich metricset work for Stack Monitoring without xpack.enabled flag #20821

Conversation

sayden
Copy link
Contributor

@sayden sayden commented Aug 27, 2020

Ready to test in Kibana. data.json is included to help troubleshooting and it has been generating testing the Metricbeat binary directly with Elasticsearch

@sayden sayden added Metricbeat Metricbeat Team:Services (Deprecated) Label for the former Integrations-Services team labels Aug 27, 2020
@sayden sayden self-assigned this Aug 27, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Aug 27, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented Aug 27, 2020

💚 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 #20821 updated]

  • Start Time: 2020-11-18T22:16:37.327+0000

  • Duration: 74 min 39 sec

Test stats 🧪

Test Results
Failed 0
Passed 2250
Skipped 502
Total 2752

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 2250
Skipped 502
Total 2752

@elasticmachine
Copy link
Collaborator

Pinging @elastic/stack-monitoring (Stack monitoring)

@sayden
Copy link
Contributor Author

sayden commented Oct 28, 2020

I added some fields into fields.yml but they weren't used before anyways. It's just for completeness.

Copy link
Contributor

@chrisronline chrisronline left a comment

Choose a reason for hiding this comment

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

We do not currently use this data in the Stack Monitoring UI. I'll approve the PR but I'm not sure how we want to handle this. I'm also fine with not doing this work since we don't use the data.

@andresrc
Copy link
Contributor

I would say that given that we have already done it, let's merge it and we can decide what to do as part of the migration.

Thanks,

@ycombinator I think this is ready for your final review, thanks!

@sayden sayden force-pushed the feature/mb/elasticsearch/enrich_xpack_flag branch from 76a10b6 to 6cbc265 Compare November 3, 2020 16:22
# Conflicts:
#	metricbeat/docs/fields.asciidoc
#	metricbeat/module/elasticsearch/fields.go
#	metricbeat/module/elasticsearch/node_stats/_meta/fields.yml
@sayden sayden force-pushed the feature/mb/elasticsearch/enrich_xpack_flag branch from 6cbc265 to 9e195af Compare November 5, 2020 20:36
@elasticmachine
Copy link
Collaborator

elasticmachine commented Nov 5, 2020

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Test stats 🧪

Test Results
Failed 2
Passed 2248
Skipped 500
Total 2750

Genuine test errors 2

💔 There are test failures but not known flaky tests, most likely a genuine test failure.

  • Name: Build&Test / x-pack/metricbeat-build / test_migration – x-pack.metricbeat.tests.system.test_xpack_base.Test
  • Name: Build&Test / x-pack/metricbeat-build / test_template – x-pack.metricbeat.tests.system.test_xpack_base.Test

Copy link
Contributor

@ycombinator ycombinator left a comment

Choose a reason for hiding this comment

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

Left a couple of comments.

@sayden sayden force-pushed the feature/mb/elasticsearch/enrich_xpack_flag branch from 9e195af to a55741a Compare November 10, 2020 16:40
@sayden sayden force-pushed the feature/mb/elasticsearch/enrich_xpack_flag branch from a55741a to 001c44c Compare November 10, 2020 16:43
"name": "docker-cluster"
},
"enrich": {
"executed_searches": {
Copy link
Contributor

Choose a reason for hiding this comment

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

If I'm following this correctly, we are introducing a breaking change here, as we're going from elasticsearch.enrich.executed_searches to elasticsearch.enrich.coordinator_stats.executed_searches. Same applies to other fields as well. We should try to prevent this, maybe by introducing field aliases from the old to the new fields?

Copy link
Contributor

Choose a reason for hiding this comment

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

Bump

@ycombinator
Copy link
Contributor

Does there need to be a fields.yml in this PR?

@sayden
Copy link
Contributor Author

sayden commented Nov 11, 2020

Does there need to be a fields.yml in this PR?

Yes. I have been struggling to run the "fields are documented" test in local until today and now I could manage to add all the missing fields in the mapping

@sayden sayden force-pushed the feature-stack-monitoring-mb-ecs branch from 58e2a7d to 9de5959 Compare November 12, 2020 11:44
@ycombinator
Copy link
Contributor

…csearch/enrich_xpack_flag

# Conflicts:
#	metricbeat/docs/fields.asciidoc
#	metricbeat/module/elasticsearch/fields.go
#	metricbeat/module/elasticsearch/node_stats/_meta/fields.yml
@sayden sayden merged commit 1b5d63f into elastic:feature-stack-monitoring-mb-ecs Nov 19, 2020
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Stack Monitoring Metricbeat Metricbeat Team:Services (Deprecated) Label for the former Integrations-Services team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants