-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Stack Monitoring] support entsearch package (#148668)
### 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]>
- Loading branch information
1 parent
7eaa352
commit 870f79d
Showing
24 changed files
with
99 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
x-pack/test/monitoring_api_integration/apis/enterprisesearch/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; | ||
|
||
export default function ({ loadTestFile }: FtrProviderContext) { | ||
describe('Enterprisesearch', () => { | ||
loadTestFile(require.resolve('./overview')); | ||
}); | ||
} |
39 changes: 39 additions & 0 deletions
39
x-pack/test/monitoring_api_integration/apis/enterprisesearch/overview.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import expect from '@kbn/expect'; | ||
import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; | ||
import { getTestRunner } from '../../utils/test_runner'; | ||
|
||
import response from '../../fixtures/enterprisesearch/overview.json'; | ||
|
||
export default function ({ getService }: FtrProviderContext) { | ||
const supertest = getService('supertest'); | ||
|
||
const testRunner = getTestRunner({ | ||
testName: 'Overview', | ||
archiveRoot: 'x-pack/test/monitoring_api_integration/archives/enterprisesearch', | ||
getService, | ||
}); | ||
|
||
const timeRange = { | ||
min: '2023-01-11T20:54:00.000Z', | ||
max: '2023-01-11T21:01:00.000Z', | ||
}; | ||
|
||
testRunner(() => { | ||
it('should summarize enterprisesearch cluster with metrics', async () => { | ||
const { body } = await supertest | ||
.post('/api/monitoring/v1/clusters/FDTNEesSQ7GbzOXIO9qImw/enterprise_search') | ||
.set('kbn-xsrf', 'xxx') | ||
.send({ timeRange }) | ||
.expect(200); | ||
|
||
expect(body).to.eql(response); | ||
}); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+9.15 KB
x-pack/test/monitoring_api_integration/archives/enterprisesearch/metricbeat/data.json.gz
Binary file not shown.
Binary file added
BIN
+8.13 KB
x-pack/test/monitoring_api_integration/archives/enterprisesearch/package/data.json.gz
Binary file not shown.
1 change: 1 addition & 0 deletions
1
x-pack/test/monitoring_api_integration/fixtures/enterprisesearch/overview.json
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+70.6 KB
x-pack/test/monitoring_api_integration/fixtures/packages/enterprisesearch-1.0.0.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters