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

[Stack Monitoring] support entsearch package #148668

Merged
merged 17 commits into from
Jan 30, 2023

Conversation

klacabane
Copy link
Contributor

@klacabane klacabane commented Jan 10, 2023

Summary

Update stack monitoring to read from data streams created by the enterprisesearch package

Testing

  • build enterprisesearch package
  • start stack: elastic-package stack up -v -d --version 8.7.0-SNAPSHOT; make sure your image contains this change
  • start enterprisesearch service: elastic-package service up -v
  • install elasticsearch integration with variables
    • hosts: http://host.docker.internal:9201; username: elastic; password: changeme
  • install enterprisesearch integration with variables
    • hosts: http://host.docker.internal:3002; username: elastic; password: changeme
  • connect local kibana
  • navigate to Stack Monitoring on the local kibana, enterprise search section shows up with populated graphs

@klacabane klacabane added Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services Feature:Stack Monitoring labels Jan 10, 2023
@klacabane klacabane self-assigned this Jan 10, 2023
@klacabane klacabane marked this pull request as ready for review January 24, 2023 11:22
@klacabane klacabane requested a review from a team as a code owner January 24, 2023 11:22
@elasticmachine
Copy link
Contributor

Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI)

@klacabane klacabane added the release_note:skip Skip the PR/issue when compiling release notes label Jan 24, 2023
@crespocarlos
Copy link
Contributor

@elasticmachine merge upstream

@crespocarlos
Copy link
Contributor

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @klacabane

Copy link
Contributor

@crespocarlos crespocarlos left a comment

Choose a reason for hiding this comment

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

LGTM! I've tested this PR while testing elastic/integrations#4926

@@ -190,7 +190,7 @@ export const BEATS_SYSTEM_ID = 'beats';
* The name of the Enterprise Search System ID used to publish and look up Enterprise Search stats through the Monitoring system.
* @type {string}
*/
export const ENTERPRISE_SEARCH_SYSTEM_ID = 'enterprise_search';
export const ENTERPRISE_SEARCH_SYSTEM_ID = 'enterprisesearch';
Copy link
Contributor

Choose a reason for hiding this comment

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

sweet!

@@ -47,7 +47,7 @@ export const errorsQuery = ({
},
{
range: {
timestamp: {
'@timestamp': {
Copy link
Contributor

Choose a reason for hiding this comment

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

did timestamp ever work?

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 works except for enterprisesearch (added in this change) which does not have a timestamp alias. Since every data streams/metricbeat module exposes the @timestamp ecs field it made sense to update

@klacabane klacabane merged commit 870f79d into elastic:main Jan 30, 2023
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jan 30, 2023
kqualters-elastic pushed a commit to kqualters-elastic/kibana that referenced this pull request Feb 6, 2023
### Summary

Update stack monitoring to read from data streams created by the
[enterprisesearch
package](elastic/integrations#4926)

### Testing
- build [enterprisesearch
package](elastic/integrations#4926)
- start stack: `elastic-package stack up -v -d --version
8.7.0-SNAPSHOT`; make sure your image contains [this
change](elastic/elastic-agent#2121)
- start enterprisesearch service: `elastic-package service up -v`
- install elasticsearch integration with variables
- `hosts: http://host.docker.internal:9201; username: elastic; password:
changeme`
- install enterprisesearch integration with variables
- `hosts: http://host.docker.internal:3002; username: elastic; password:
changeme`
- connect [local
kibana](https://github.com/elastic/kibana/blob/2d893bf40b47864058065f8fd2998d63c87f65f9/x-pack/plugins/monitoring/dev_docs/how_to/work_with_packages.md#connecting-a-local-kibana)
- navigate to Stack Monitoring on the local kibana, enterprise search
section shows up with populated graphs

---------

Co-authored-by: Kibana Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Stack Monitoring release_note:skip Skip the PR/issue when compiling release notes Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v8.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants