diff --git a/x-pack/plugins/monitoring/common/constants.ts b/x-pack/plugins/monitoring/common/constants.ts index d7e607f53b01c..d8c442f7c7bc2 100644 --- a/x-pack/plugins/monitoring/common/constants.ts +++ b/x-pack/plugins/monitoring/common/constants.ts @@ -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'; /** * The name of the Apm System ID used to publish and look up Apm stats through the Monitoring system. diff --git a/x-pack/plugins/monitoring/server/lib/cluster/get_index_patterns.ts b/x-pack/plugins/monitoring/server/lib/cluster/get_index_patterns.ts index 8d31cea037864..1af9397027803 100644 --- a/x-pack/plugins/monitoring/server/lib/cluster/get_index_patterns.ts +++ b/x-pack/plugins/monitoring/server/lib/cluster/get_index_patterns.ts @@ -69,7 +69,7 @@ export function getLegacyIndexPattern({ case 'beats': indexPattern = INDEX_PATTERN_BEATS; break; - case 'enterprise_search': + case 'enterprisesearch': indexPattern = INDEX_PATTERN_ENTERPRISE_SEARCH; break; case 'filebeat': @@ -127,6 +127,7 @@ export const getElasticsearchDataset = getDataset('elasticsearch'); export const getKibanaDataset = getDataset('kibana'); export const getLogstashDataset = getDataset('logstash'); export const getBeatDataset = getDataset('beats'); +export const getEntsearchDataset = getDataset('enterprisesearch'); function buildDatasetPattern( moduleType?: INDEX_PATTERN_TYPES, diff --git a/x-pack/plugins/monitoring/server/lib/enterprise_search/create_enterprise_search_query.ts b/x-pack/plugins/monitoring/server/lib/enterprise_search/create_enterprise_search_query.ts index 5e5c972d2ba46..4204166b4a381 100644 --- a/x-pack/plugins/monitoring/server/lib/enterprise_search/create_enterprise_search_query.ts +++ b/x-pack/plugins/monitoring/server/lib/enterprise_search/create_enterprise_search_query.ts @@ -8,6 +8,7 @@ import { EnterpriseSearchMetric, EnterpriseSearchMetricFields } from '../metrics'; import { createQuery } from '../create_query'; import { STANDALONE_CLUSTER_CLUSTER_UUID } from '../../../common/constants'; +import { getEntsearchDataset } from '../cluster/get_index_patterns'; /** * {@code createQuery} for all Enterprise Search instances. @@ -53,6 +54,8 @@ export function createEnterpriseSearchQuery(options: { }, { term: { 'event.dataset': 'enterprisesearch.health' } }, { term: { 'event.dataset': 'enterprisesearch.stats' } }, + { term: { 'data_stream.dataset': getEntsearchDataset('health') } }, + { term: { 'data_stream.dataset': getEntsearchDataset('stats') } }, ], }, }); diff --git a/x-pack/plugins/monitoring/server/lib/enterprise_search/get_enterprise_search_for_clusters.ts b/x-pack/plugins/monitoring/server/lib/enterprise_search/get_enterprise_search_for_clusters.ts index bff7e5db5dc92..0011c965c8654 100644 --- a/x-pack/plugins/monitoring/server/lib/enterprise_search/get_enterprise_search_for_clusters.ts +++ b/x-pack/plugins/monitoring/server/lib/enterprise_search/get_enterprise_search_for_clusters.ts @@ -9,7 +9,7 @@ import { TimeRange } from '../../../common/http_api/shared'; import { ElasticsearchResponse } from '../../../common/types/es'; import { Globals } from '../../static_globals'; import { Cluster, LegacyRequest } from '../../types'; -import { getLegacyIndexPattern } from '../cluster/get_index_patterns'; +import { getIndexPatterns } from '../cluster/get_index_patterns'; import { EnterpriseSearchMetric } from '../metrics'; import { createEnterpriseSearchQuery } from './create_enterprise_search_query'; import { @@ -37,8 +37,8 @@ export function getEnterpriseSearchForClusters( const config = req.server.config; const maxBucketSize = config.ui.max_bucket_size; - const indexPatterns = getLegacyIndexPattern({ - moduleType: 'enterprise_search', + const indexPatterns = getIndexPatterns({ + moduleType: 'enterprisesearch', ccs, config: Globals.app.config, }); diff --git a/x-pack/plugins/monitoring/server/lib/enterprise_search/get_stats.ts b/x-pack/plugins/monitoring/server/lib/enterprise_search/get_stats.ts index 751295823c3a1..526e7ec919405 100644 --- a/x-pack/plugins/monitoring/server/lib/enterprise_search/get_stats.ts +++ b/x-pack/plugins/monitoring/server/lib/enterprise_search/get_stats.ts @@ -10,7 +10,7 @@ import { TimeRange } from '../../../common/http_api/shared'; import { ElasticsearchResponse } from '../../../common/types/es'; import { Globals } from '../../static_globals'; import { LegacyRequest } from '../../types'; -import { getLegacyIndexPattern } from '../cluster/get_index_patterns'; +import { getIndexPatterns } from '../cluster/get_index_patterns'; import { createEnterpriseSearchQuery } from './create_enterprise_search_query'; import { entSearchAggFilterPath, @@ -27,9 +27,8 @@ export async function getStats( const end = moment.utc(req.payload.timeRange.max).valueOf(); const maxBucketSize = config.ui.max_bucket_size; - // just get the legacy pattern since no integration exists yet - const indexPattern = getLegacyIndexPattern({ - moduleType: 'enterprise_search', + const indexPattern = getIndexPatterns({ + moduleType: 'enterprisesearch', config: Globals.app.config, ccs: req.payload.ccs, }); diff --git a/x-pack/plugins/monitoring/server/lib/setup/collection/get_collection_status.ts b/x-pack/plugins/monitoring/server/lib/setup/collection/get_collection_status.ts index 6357339a4a681..6d800e83c2d7c 100644 --- a/x-pack/plugins/monitoring/server/lib/setup/collection/get_collection_status.ts +++ b/x-pack/plugins/monitoring/server/lib/setup/collection/get_collection_status.ts @@ -26,7 +26,7 @@ interface Bucket { }; } -type COLLECTION_PRODUCT_NAMES = Exclude; +type COLLECTION_PRODUCT_NAMES = Exclude; const NUMBER_OF_SECONDS_AGO_TO_LOOK = 30; diff --git a/x-pack/plugins/monitoring/server/routes/api/v1/_health/errors_helpers/errors_query.ts b/x-pack/plugins/monitoring/server/routes/api/v1/_health/errors_helpers/errors_query.ts index 0c2fd16bf487c..11ec39ed06203 100644 --- a/x-pack/plugins/monitoring/server/routes/api/v1/_health/errors_helpers/errors_query.ts +++ b/x-pack/plugins/monitoring/server/routes/api/v1/_health/errors_helpers/errors_query.ts @@ -5,7 +5,7 @@ * 2.0. */ -import type { MetricbeatMonitoredProduct, PackagesMonitoredProduct, QueryOptions } from '../types'; +import type { MonitoredProduct, QueryOptions } from '../types'; const MAX_BUCKET_SIZE = 50; @@ -14,7 +14,7 @@ const MAX_BUCKET_SIZE = 50; * Each module (beats, kibana...) can contain one or multiple metricsets with error messages */ interface ErrorsQueryOptions extends QueryOptions { - products: MetricbeatMonitoredProduct[] | PackagesMonitoredProduct[]; + products: Array>; errorQueryType: 'metricbeatErrorsQuery' | 'packageErrorsQuery'; errorQueryIsDataStream?: boolean; } @@ -47,7 +47,7 @@ export const errorsQuery = ({ }, { range: { - timestamp: { + '@timestamp': { gte: timeRange.min, lte: timeRange.max, }, diff --git a/x-pack/plugins/monitoring/server/routes/api/v1/_health/index.ts b/x-pack/plugins/monitoring/server/routes/api/v1/_health/index.ts index 1b5f7e7eac294..8a04150a7bbde 100644 --- a/x-pack/plugins/monitoring/server/routes/api/v1/_health/index.ts +++ b/x-pack/plugins/monitoring/server/routes/api/v1/_health/index.ts @@ -60,9 +60,10 @@ export function registerV1HealthRoute(server: MonitoringCore) { getDsIndexPattern({ config, moduleType: 'kibana' }), getDsIndexPattern({ config, moduleType: 'logstash' }), getDsIndexPattern({ config, moduleType: 'beats' }), + getDsIndexPattern({ config, moduleType: 'enterprisesearch' }), ].join(','); - const entSearchIndex = getIndexPatterns({ config, moduleType: 'enterprise_search' }); + const entSearchIndex = getIndexPatterns({ config, moduleType: 'enterprisesearch' }); const monitoredClustersFn = () => fetchMonitoredClusters({ diff --git a/x-pack/plugins/monitoring/server/routes/api/v1/_health/monitored_clusters/build_monitored_clusters.ts b/x-pack/plugins/monitoring/server/routes/api/v1/_health/monitored_clusters/build_monitored_clusters.ts index 2a621deff1854..805cc0db909e0 100644 --- a/x-pack/plugins/monitoring/server/routes/api/v1/_health/monitored_clusters/build_monitored_clusters.ts +++ b/x-pack/plugins/monitoring/server/routes/api/v1/_health/monitored_clusters/build_monitored_clusters.ts @@ -43,7 +43,8 @@ const metricbeatMonitoring7Pattern = /(.*:)?\.monitoring-(es|kibana|beats|logstash|ent-search)-7.*-mb.*/; const metricbeatMonitoring8Pattern = /(.*:)?\.ds-\.monitoring-(es|kibana|beats|logstash|ent-search)-8-mb.*/; -const packagePattern = /(.*:)?\.ds-metrics-(elasticsearch|kibana|beats|logstash)\..*/; +const packagePattern = + /(.*:)?\.ds-metrics-(elasticsearch|kibana|beats|logstash|enterprisesearch)\..*/; const getCollectionMode = (index: string): CollectionMode => { if (internalMonitoringPattern.test(index)) return CollectionMode.Internal; diff --git a/x-pack/plugins/monitoring/server/routes/api/v1/_health/monitored_clusters/fetch_monitored_clusters.test.ts b/x-pack/plugins/monitoring/server/routes/api/v1/_health/monitored_clusters/fetch_monitored_clusters.test.ts index fabece8a6b207..adcf477677de6 100644 --- a/x-pack/plugins/monitoring/server/routes/api/v1/_health/monitored_clusters/fetch_monitored_clusters.test.ts +++ b/x-pack/plugins/monitoring/server/routes/api/v1/_health/monitored_clusters/fetch_monitored_clusters.test.ts @@ -224,7 +224,7 @@ describe(__filename, () => { { key: 'cluster-id.1', doc_count: 11874, - enterpriseSearch: { + enterprisesearch: { meta: {}, doc_count_error_upper_bound: 0, sum_other_doc_count: 0, @@ -310,7 +310,7 @@ describe(__filename, () => { }, }, - enterpriseSearch: { + enterprisesearch: { 'ent-search-node-id.1': { health: { 'metricbeat-8': { diff --git a/x-pack/plugins/monitoring/server/routes/api/v1/_health/monitored_clusters/monitored_clusters_query.ts b/x-pack/plugins/monitoring/server/routes/api/v1/_health/monitored_clusters/monitored_clusters_query.ts index 5c889df19a1a5..dac9d6b59ca1a 100644 --- a/x-pack/plugins/monitoring/server/routes/api/v1/_health/monitored_clusters/monitored_clusters_query.ts +++ b/x-pack/plugins/monitoring/server/routes/api/v1/_health/monitored_clusters/monitored_clusters_query.ts @@ -11,6 +11,7 @@ import { getElasticsearchDataset, getKibanaDataset, getLogstashDataset, + getEntsearchDataset, } from '../../../../../lib/cluster/get_index_patterns'; const MAX_BUCKET_SIZE = 100; @@ -187,7 +188,7 @@ export const enterpriseSearchQuery = ({ timeRange, timeout }: QueryOptions) => { size: MAX_BUCKET_SIZE, }, aggs: { - enterpriseSearch: { + enterprisesearch: { terms: { field: 'agent.id', }, @@ -202,6 +203,11 @@ export const enterpriseSearchQuery = ({ timeRange, timeout }: QueryOptions) => { 'metricset.name': 'health', }, }, + { + term: { + 'data_stream.dataset': getEntsearchDataset('health'), + }, + }, ], }, }, @@ -219,6 +225,11 @@ export const enterpriseSearchQuery = ({ timeRange, timeout }: QueryOptions) => { 'metricset.name': 'stats', }, }, + { + term: { + 'data_stream.dataset': getEntsearchDataset('stats'), + }, + }, ], }, }, diff --git a/x-pack/plugins/monitoring/server/routes/api/v1/_health/package/fetch_package_errors.ts b/x-pack/plugins/monitoring/server/routes/api/v1/_health/package/fetch_package_errors.ts index 122c375dc9d25..fe8f857307c2b 100644 --- a/x-pack/plugins/monitoring/server/routes/api/v1/_health/package/fetch_package_errors.ts +++ b/x-pack/plugins/monitoring/server/routes/api/v1/_health/package/fetch_package_errors.ts @@ -37,6 +37,7 @@ export const fetchPackageErrors = async ({ MonitoredProduct.Elasticsearch, MonitoredProduct.Kibana, MonitoredProduct.Logstash, + MonitoredProduct.EnterpriseSearch, ], errorQueryType: 'packageErrorsQuery', errorQueryIsDataStream: true, diff --git a/x-pack/plugins/monitoring/server/routes/api/v1/_health/types.ts b/x-pack/plugins/monitoring/server/routes/api/v1/_health/types.ts index df9abf1a0aa6c..3e0ae143826e7 100644 --- a/x-pack/plugins/monitoring/server/routes/api/v1/_health/types.ts +++ b/x-pack/plugins/monitoring/server/routes/api/v1/_health/types.ts @@ -15,14 +15,8 @@ export enum MonitoredProduct { Kibana = 'kibana', Beats = 'beat', Logstash = 'logstash', - EnterpriseSearch = 'enterpriseSearch', + EnterpriseSearch = 'enterprisesearch', } -export type MetricbeatMonitoredProduct = Exclude; -export type PackagesMonitoredProduct = Exclude< - MetricbeatMonitoredProduct, - MonitoredProduct.EnterpriseSearch ->; - export type SearchFn = (params: any) => Promise; export interface QueryOptions { diff --git a/x-pack/plugins/monitoring/server/routes/api/v1/enterprise_search/overview.ts b/x-pack/plugins/monitoring/server/routes/api/v1/enterprise_search/overview.ts index 8478d3a220dd9..6581b52655cee 100644 --- a/x-pack/plugins/monitoring/server/routes/api/v1/enterprise_search/overview.ts +++ b/x-pack/plugins/monitoring/server/routes/api/v1/enterprise_search/overview.ts @@ -33,7 +33,7 @@ export function entSearchOverviewRoute(server: MonitoringCore) { try { const [stats, metrics] = await Promise.all([ getStats(req, clusterUuid), - getMetrics(req, 'enterprise_search', metricSet, [], { + getMetrics(req, 'enterprisesearch', metricSet, [], { skipClusterUuidFilter: true, }), ]); diff --git a/x-pack/test/monitoring_api_integration/apis/enterprisesearch/index.ts b/x-pack/test/monitoring_api_integration/apis/enterprisesearch/index.ts new file mode 100644 index 0000000000000..5942fde0fe95a --- /dev/null +++ b/x-pack/test/monitoring_api_integration/apis/enterprisesearch/index.ts @@ -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')); + }); +} diff --git a/x-pack/test/monitoring_api_integration/apis/enterprisesearch/overview.ts b/x-pack/test/monitoring_api_integration/apis/enterprisesearch/overview.ts new file mode 100644 index 0000000000000..3f5284af04ca1 --- /dev/null +++ b/x-pack/test/monitoring_api_integration/apis/enterprisesearch/overview.ts @@ -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); + }); + }); +} diff --git a/x-pack/test/monitoring_api_integration/apis/index.ts b/x-pack/test/monitoring_api_integration/apis/index.ts index 0d3099275ada2..884d1b478b49e 100644 --- a/x-pack/test/monitoring_api_integration/apis/index.ts +++ b/x-pack/test/monitoring_api_integration/apis/index.ts @@ -11,5 +11,6 @@ export default function ({ loadTestFile }: FtrProviderContext) { describe('Monitoring Endpoints', function () { loadTestFile(require.resolve('./apm')); loadTestFile(require.resolve('./beats')); + loadTestFile(require.resolve('./enterprisesearch')); }); } diff --git a/x-pack/test/monitoring_api_integration/archives/enterprisesearch/metricbeat/data.json.gz b/x-pack/test/monitoring_api_integration/archives/enterprisesearch/metricbeat/data.json.gz new file mode 100644 index 0000000000000..70c6b35118602 Binary files /dev/null and b/x-pack/test/monitoring_api_integration/archives/enterprisesearch/metricbeat/data.json.gz differ diff --git a/x-pack/test/monitoring_api_integration/archives/enterprisesearch/package/data.json.gz b/x-pack/test/monitoring_api_integration/archives/enterprisesearch/package/data.json.gz new file mode 100644 index 0000000000000..a36b12917f065 Binary files /dev/null and b/x-pack/test/monitoring_api_integration/archives/enterprisesearch/package/data.json.gz differ diff --git a/x-pack/test/monitoring_api_integration/fixtures/enterprisesearch/overview.json b/x-pack/test/monitoring_api_integration/fixtures/enterprisesearch/overview.json new file mode 100644 index 0000000000000..9928265a8e5b8 --- /dev/null +++ b/x-pack/test/monitoring_api_integration/fixtures/enterprisesearch/overview.json @@ -0,0 +1 @@ +{"stats":{"appSearchEngines":1,"workplaceSearchOrgSources":1,"workplaceSearchPrivateSources":0,"totalInstances":1,"uptime":1670762,"memUsed":1110220288,"memCommitted":2147483648,"memTotal":2147483648,"versions":["8.7.0"]},"metrics":{"enterprise_search_heap":[{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.health.jvm.memory_usage.heap_max.bytes","metricAgg":"max","label":"Total","title":"JVM Heap Usage","description":"Maximum amount of JVM heap memory available to the application.","units":"bytes","format":"0,0.0 b","hasCalculation":false,"isDerivative":false},"data":[[1673470460000,2147483648],[1673470470000,2147483648],[1673470480000,2147483648],[1673470490000,2147483648],[1673470500000,2147483648],[1673470510000,2147483648],[1673470520000,2147483648],[1673470530000,2147483648],[1673470540000,2147483648],[1673470550000,2147483648],[1673470560000,2147483648],[1673470570000,2147483648],[1673470580000,2147483648],[1673470590000,2147483648],[1673470600000,2147483648],[1673470610000,2147483648],[1673470620000,2147483648],[1673470630000,2147483648],[1673470640000,2147483648],[1673470650000,2147483648],[1673470660000,2147483648],[1673470670000,2147483648],[1673470680000,2147483648],[1673470690000,2147483648],[1673470700000,2147483648],[1673470710000,2147483648],[1673470720000,2147483648],[1673470730000,2147483648],[1673470740000,2147483648],[1673470750000,2147483648],[1673470760000,2147483648],[1673470770000,2147483648],[1673470780000,2147483648],[1673470790000,2147483648],[1673470800000,2147483648],[1673470810000,2147483648],[1673470820000,2147483648],[1673470830000,2147483648],[1673470840000,2147483648]]},{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.health.jvm.memory_usage.heap_committed.bytes","metricAgg":"max","label":"Committed","description":"The amount of memory JVM has allocated from the OS and is available to the application.","units":"bytes","format":"0,0.0 b","hasCalculation":false,"isDerivative":false},"data":[[1673470460000,2147483648],[1673470470000,2147483648],[1673470480000,2147483648],[1673470490000,2147483648],[1673470500000,2147483648],[1673470510000,2147483648],[1673470520000,2147483648],[1673470530000,2147483648],[1673470540000,2147483648],[1673470550000,2147483648],[1673470560000,2147483648],[1673470570000,2147483648],[1673470580000,2147483648],[1673470590000,2147483648],[1673470600000,2147483648],[1673470610000,2147483648],[1673470620000,2147483648],[1673470630000,2147483648],[1673470640000,2147483648],[1673470650000,2147483648],[1673470660000,2147483648],[1673470670000,2147483648],[1673470680000,2147483648],[1673470690000,2147483648],[1673470700000,2147483648],[1673470710000,2147483648],[1673470720000,2147483648],[1673470730000,2147483648],[1673470740000,2147483648],[1673470750000,2147483648],[1673470760000,2147483648],[1673470770000,2147483648],[1673470780000,2147483648],[1673470790000,2147483648],[1673470800000,2147483648],[1673470810000,2147483648],[1673470820000,2147483648],[1673470830000,2147483648],[1673470840000,2147483648]]},{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.health.jvm.memory_usage.heap_used.bytes","metricAgg":"max","label":"Used","description":"Current amount of JVM Heam memory used by the application.","units":"bytes","format":"0,0.0 b","hasCalculation":false,"isDerivative":false},"data":[[1673470460000,480026112],[1673470470000,493657600],[1673470480000,503094784],[1673470490000,512531968],[1673470500000,523017728],[1673470510000,534552064],[1673470520000,543989248],[1673470530000,554475008],[1673470540000,564960768],[1673470550000,574397952],[1673470560000,590126592],[1673470570000,600612352],[1673470580000,627875328],[1673470590000,653041152],[1673470600000,698129920],[1673470610000,764190208],[1673470620000,784113152],[1673470630000,794598912],[1673470640000,804036096],[1673470650000,814521856],[1673470660000,836541952],[1673470670000,845979136],[1673470680000,859610624],[1673470690000,870096384],[1673470700000,880582144],[1673470710000,893165056],[1673470720000,904699392],[1673470730000,914136576],[1673470740000,927768064],[1673470750000,937205248],[1673470760000,947691008],[1673470770000,977051136],[1673470780000,1046257152],[1673470790000,1056742912],[1673470800000,1070374400],[1673470810000,1080860160],[1673470820000,1090297344],[1673470830000,1100783104],[1673470840000,1110220288]]}],"enterprise_search_jvm_finalizer_queue":[{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.health.jvm.memory_usage.object_pending_finalization_count","metricAgg":"max","label":"JVM Objects Pending Finalization","description":"Number of objects within the JVM heap waiting for the finalizer thread.","units":"","format":"0.[00]","hasCalculation":false,"isDerivative":false},"data":[[1673470460000,0],[1673470470000,0],[1673470480000,0],[1673470490000,0],[1673470500000,0],[1673470510000,0],[1673470520000,0],[1673470530000,0],[1673470540000,0],[1673470550000,0],[1673470560000,0],[1673470570000,0],[1673470580000,0],[1673470590000,0],[1673470600000,0],[1673470610000,0],[1673470620000,0],[1673470630000,0],[1673470640000,0],[1673470650000,0],[1673470660000,0],[1673470670000,0],[1673470680000,0],[1673470690000,0],[1673470700000,0],[1673470710000,0],[1673470720000,0],[1673470730000,0],[1673470740000,0],[1673470750000,0],[1673470760000,0],[1673470770000,0],[1673470780000,0],[1673470790000,0],[1673470800000,0],[1673470810000,0],[1673470820000,0],[1673470830000,0],[1673470840000,0]]}],"enterprise_search_gc_time":[{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.health.jvm.gc.collection_time.ms","metricAgg":"max","label":"Time spent on JVM garbage collection","description":"Time spent performing JVM garbage collections.","units":"ms","format":"0,0.[00]","hasCalculation":false,"isDerivative":true},"data":[[1673470460000,null],[1673470470000,0],[1673470480000,0],[1673470490000,0],[1673470500000,0],[1673470510000,0],[1673470520000,0],[1673470530000,0],[1673470540000,0],[1673470550000,0],[1673470560000,0],[1673470570000,0],[1673470580000,0],[1673470590000,0],[1673470600000,0],[1673470610000,0],[1673470620000,0],[1673470630000,0],[1673470640000,0],[1673470650000,0],[1673470660000,0],[1673470670000,0],[1673470680000,0],[1673470690000,0],[1673470700000,0],[1673470710000,0],[1673470720000,0],[1673470730000,0],[1673470740000,0],[1673470750000,0],[1673470760000,0],[1673470770000,0],[1673470780000,0],[1673470790000,0],[1673470800000,0],[1673470810000,0],[1673470820000,0],[1673470830000,0],[1673470840000,0]]}],"enterprise_search_gc_rate":[{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.health.jvm.gc.collection_count","metricAgg":"max","label":"JVM GC Rate","description":"The rate of JVM garbage collector invocations across the fleet.","units":"/s","format":"0.[00]","hasCalculation":false,"isDerivative":true},"data":[[1673470460000,null],[1673470470000,0],[1673470480000,0],[1673470490000,0],[1673470500000,0],[1673470510000,0],[1673470520000,0],[1673470530000,0],[1673470540000,0],[1673470550000,0],[1673470560000,0],[1673470570000,0],[1673470580000,0],[1673470590000,0],[1673470600000,0],[1673470610000,0],[1673470620000,0],[1673470630000,0],[1673470640000,0],[1673470650000,0],[1673470660000,0],[1673470670000,0],[1673470680000,0],[1673470690000,0],[1673470700000,0],[1673470710000,0],[1673470720000,0],[1673470730000,0],[1673470740000,0],[1673470750000,0],[1673470760000,0],[1673470770000,0],[1673470780000,0],[1673470790000,0],[1673470800000,0],[1673470810000,0],[1673470820000,0],[1673470830000,0],[1673470840000,0]]}],"enterprise_search_threads":[{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.health.jvm.threads.current","metricAgg":"max","label":"Active Threads","title":"JVM Threads","description":"Currently running JVM threads used by the application.","units":"","format":"0.[00]","hasCalculation":false,"isDerivative":false},"data":[[1673470460000,27],[1673470470000,29],[1673470480000,29],[1673470490000,29],[1673470500000,28],[1673470510000,28],[1673470520000,28],[1673470530000,27],[1673470540000,27],[1673470550000,28],[1673470560000,28],[1673470570000,28],[1673470580000,28],[1673470590000,29],[1673470600000,29],[1673470610000,29],[1673470620000,29],[1673470630000,29],[1673470640000,29],[1673470650000,28],[1673470660000,28],[1673470670000,28],[1673470680000,29],[1673470690000,29],[1673470700000,29],[1673470710000,28],[1673470720000,28],[1673470730000,28],[1673470740000,29],[1673470750000,29],[1673470760000,29],[1673470770000,30],[1673470780000,36],[1673470790000,36],[1673470800000,35],[1673470810000,35],[1673470820000,35],[1673470830000,34],[1673470840000,34]]},{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.health.jvm.threads.daemon","metricAgg":"max","label":"Daemon Threads","description":"Currently running JVM daemon threads used by the application.","units":"","format":"0.[00]","hasCalculation":false,"isDerivative":false},"data":[[1673470460000,16],[1673470470000,17],[1673470480000,17],[1673470490000,17],[1673470500000,16],[1673470510000,16],[1673470520000,16],[1673470530000,16],[1673470540000,16],[1673470550000,16],[1673470560000,16],[1673470570000,16],[1673470580000,16],[1673470590000,16],[1673470600000,16],[1673470610000,16],[1673470620000,16],[1673470630000,16],[1673470640000,16],[1673470650000,16],[1673470660000,16],[1673470670000,16],[1673470680000,17],[1673470690000,17],[1673470700000,17],[1673470710000,17],[1673470720000,17],[1673470730000,17],[1673470740000,17],[1673470750000,17],[1673470760000,17],[1673470770000,17],[1673470780000,23],[1673470790000,23],[1673470800000,22],[1673470810000,22],[1673470820000,22],[1673470830000,22],[1673470840000,22]]}],"enterprise_search_threads_rate":[{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.health.jvm.threads.total_started","metricAgg":"max","label":"Thread Creation Rate","description":"Currently running JVM threads used by the application.","units":"/s","format":"0.[00]","hasCalculation":false,"isDerivative":true},"data":[[1673470460000,null],[1673470470000,0.2],[1673470480000,0],[1673470490000,0],[1673470500000,0],[1673470510000,0],[1673470520000,0],[1673470530000,0],[1673470540000,0],[1673470550000,0.1],[1673470560000,0],[1673470570000,0],[1673470580000,0],[1673470590000,0.1],[1673470600000,0],[1673470610000,0],[1673470620000,0],[1673470630000,0],[1673470640000,0],[1673470650000,0],[1673470660000,0],[1673470670000,0],[1673470680000,0.1],[1673470690000,0],[1673470700000,0],[1673470710000,0],[1673470720000,0],[1673470730000,0],[1673470740000,0.1],[1673470750000,0],[1673470760000,0],[1673470770000,0.1],[1673470780000,0.6],[1673470790000,0],[1673470800000,0],[1673470810000,0],[1673470820000,0],[1673470830000,0],[1673470840000,0]]}],"enterprise_search_http_connections_current":[{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.stats.http.connections.current","metricAgg":"max","label":"Open HTTP Connections","description":"Currently open incoming HTTP connections across all instances.","units":"","format":"0.[00]","hasCalculation":false,"isDerivative":false},"data":[[1673470460000,2],[1673470470000,2],[1673470480000,2],[1673470490000,2],[1673470500000,2],[1673470510000,2],[1673470520000,2],[1673470530000,2],[1673470540000,2],[1673470550000,2],[1673470560000,2],[1673470570000,2],[1673470580000,2],[1673470590000,2],[1673470600000,2],[1673470610000,2],[1673470620000,2],[1673470630000,2],[1673470640000,2],[1673470650000,2],[1673470660000,2],[1673470670000,2],[1673470680000,2],[1673470690000,2],[1673470700000,2],[1673470710000,2],[1673470720000,2],[1673470730000,2],[1673470740000,2],[1673470750000,2],[1673470760000,2],[1673470770000,2],[1673470780000,2],[1673470790000,2],[1673470800000,2],[1673470810000,2],[1673470820000,2],[1673470830000,2],[1673470840000,2]]}],"enterprise_search_http_connections_rate":[{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.stats.http.connections.total","metricAgg":"max","label":"HTTP Connections Rate","description":"The rate of incoming HTTP connections across all instances.","units":"/s","format":"0,0.[00]","hasCalculation":false,"isDerivative":true},"data":[[1673470460000,null],[1673470470000,0.9],[1673470480000,0.9],[1673470490000,0.8],[1673470500000,0.9],[1673470510000,0.9],[1673470520000,0.8],[1673470530000,0.9],[1673470540000,1],[1673470550000,0.7],[1673470560000,0.9],[1673470570000,0.9],[1673470580000,1],[1673470590000,1],[1673470600000,1.2],[1673470610000,1.4],[1673470620000,1],[1673470630000,0.9],[1673470640000,0.9],[1673470650000,0.9],[1673470660000,0.9],[1673470670000,0.9],[1673470680000,0.9],[1673470690000,0.9],[1673470700000,0.9],[1673470710000,0.8],[1673470720000,0.9],[1673470730000,0.9],[1673470740000,1],[1673470750000,0.9],[1673470760000,0.9],[1673470770000,1.1],[1673470780000,1.6],[1673470790000,0.9],[1673470800000,0.9],[1673470810000,0.9],[1673470820000,0.9],[1673470830000,0.9],[1673470840000,0.8]]}],"enterprise_search_http_traffic":[{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.stats.http.network.received.bytes","metricAgg":"max","label":"Received","title":"HTTP Traffic","description":"Incoming HTTP traffic rate across all instances in the deployment.","units":"/s","format":"0,0.0 b","hasCalculation":false,"isDerivative":true},"data":[[1673470460000,null],[1673470470000,112.5],[1673470480000,112.5],[1673470490000,100],[1673470500000,112.5],[1673470510000,112.5],[1673470520000,100],[1673470530000,112.5],[1673470540000,125],[1673470550000,87.5],[1673470560000,112.5],[1673470570000,112.5],[1673470580000,154.8],[1673470590000,201.1],[1673470600000,259.2],[1673470610000,347.3],[1673470620000,156.6],[1673470630000,112.5],[1673470640000,112.5],[1673470650000,112.5],[1673470660000,112.5],[1673470670000,112.5],[1673470680000,112.5],[1673470690000,112.5],[1673470700000,112.5],[1673470710000,100],[1673470720000,112.5],[1673470730000,112.5],[1673470740000,125],[1673470750000,112.5],[1673470760000,112.5],[1673470770000,251.8],[1673470780000,460.2],[1673470790000,112.5],[1673470800000,112.5],[1673470810000,112.5],[1673470820000,112.5],[1673470830000,112.5],[1673470840000,100]]},{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.stats.http.network.sent.bytes","metricAgg":"max","label":"Sent","description":"Outgoing HTTP traffic across all instances in the deployment.","units":"/s","format":"0,0.0 b","hasCalculation":false,"isDerivative":true},"data":[[1673470460000,null],[1673470470000,675.9],[1673470480000,675.9],[1673470490000,600.8],[1673470500000,675.9],[1673470510000,675.9],[1673470520000,600.8],[1673470530000,675.9],[1673470540000,751],[1673470550000,525.7],[1673470560000,675.9],[1673470570000,675.9],[1673470580000,830.5],[1673470590000,838.2],[1673470600000,1115.4],[1673470610000,1389.5],[1673470620000,836.1],[1673470630000,675.9],[1673470640000,675.9],[1673470650000,675.9],[1673470660000,675.9],[1673470670000,675.9],[1673470680000,675.9],[1673470690000,675.9],[1673470700000,675.9],[1673470710000,600.8],[1673470720000,675.9],[1673470730000,675.9],[1673470740000,751],[1673470750000,675.9],[1673470760000,675.9],[1673470770000,1044.1],[1673470780000,1675.2],[1673470790000,675.9],[1673470800000,675.9],[1673470810000,675.9],[1673470820000,675.9],[1673470830000,675.9],[1673470840000,600.8]]}],"enterprise_search_http_responses":[{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.stats.http.responses.1xx","metricAgg":"max","label":"1xx","title":"HTTP Responses","description":"Outgoing HTTP 1xx responses across all instances in the deployment.","units":"/s","format":"0,0.[00]","hasCalculation":false,"isDerivative":true},"data":[[1673470460000,null],[1673470470000,0],[1673470480000,0],[1673470490000,0],[1673470500000,0],[1673470510000,0],[1673470520000,0],[1673470530000,0],[1673470540000,0],[1673470550000,0],[1673470560000,0],[1673470570000,0],[1673470580000,0],[1673470590000,0],[1673470600000,0],[1673470610000,0],[1673470620000,0],[1673470630000,0],[1673470640000,0],[1673470650000,0],[1673470660000,0],[1673470670000,0],[1673470680000,0],[1673470690000,0],[1673470700000,0],[1673470710000,0],[1673470720000,0],[1673470730000,0],[1673470740000,0],[1673470750000,0],[1673470760000,0],[1673470770000,0],[1673470780000,0],[1673470790000,0],[1673470800000,0],[1673470810000,0],[1673470820000,0],[1673470830000,0],[1673470840000,0]]},{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.stats.http.responses.2xx","metricAgg":"max","label":"2xx","description":"Outgoing HTTP 2xx responses across all instances in the deployment.","units":"/s","format":"0,0.[00]","hasCalculation":false,"isDerivative":true},"data":[[1673470460000,null],[1673470470000,0.3],[1673470480000,0.2],[1673470490000,0.2],[1673470500000,0.2],[1673470510000,0.2],[1673470520000,0.2],[1673470530000,0.2],[1673470540000,0.1],[1673470550000,0.3],[1673470560000,0.2],[1673470570000,0.2],[1673470580000,0.3],[1673470590000,0.4],[1673470600000,0.5],[1673470610000,0.7],[1673470620000,0.3],[1673470630000,0.2],[1673470640000,0.2],[1673470650000,0.2],[1673470660000,0.2],[1673470670000,0.2],[1673470680000,0.2],[1673470690000,0.2],[1673470700000,0.2],[1673470710000,0.2],[1673470720000,0.2],[1673470730000,0.2],[1673470740000,0.2],[1673470750000,0.2],[1673470760000,0.2],[1673470770000,0.5],[1673470780000,0.9],[1673470790000,0.2],[1673470800000,0.2],[1673470810000,0.2],[1673470820000,0.2],[1673470830000,0.2],[1673470840000,0.2]]},{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.stats.http.responses.3xx","metricAgg":"max","label":"3xx","description":"Outgoing HTTP 3xx responses across all instances in the deployment.","units":"/s","format":"0,0.[00]","hasCalculation":false,"isDerivative":true},"data":[[1673470460000,null],[1673470470000,0.9],[1673470480000,0.9],[1673470490000,0.8],[1673470500000,0.9],[1673470510000,0.9],[1673470520000,0.8],[1673470530000,0.9],[1673470540000,1],[1673470550000,0.7],[1673470560000,0.9],[1673470570000,0.9],[1673470580000,0.9],[1673470590000,0.8],[1673470600000,0.9],[1673470610000,0.9],[1673470620000,0.9],[1673470630000,0.9],[1673470640000,0.9],[1673470650000,0.9],[1673470660000,0.9],[1673470670000,0.9],[1673470680000,0.9],[1673470690000,0.9],[1673470700000,0.9],[1673470710000,0.8],[1673470720000,0.9],[1673470730000,0.9],[1673470740000,1],[1673470750000,0.9],[1673470760000,0.9],[1673470770000,0.8],[1673470780000,0.9],[1673470790000,0.9],[1673470800000,0.9],[1673470810000,0.9],[1673470820000,0.9],[1673470830000,0.9],[1673470840000,0.8]]},{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.stats.http.responses.4xx","metricAgg":"max","label":"4xx","description":"Outgoing HTTP 4xx responses across all instances in the deployment.","units":"/s","format":"0,0.[00]","hasCalculation":false,"isDerivative":true},"data":[[1673470460000,null],[1673470470000,0],[1673470480000,0],[1673470490000,0],[1673470500000,0],[1673470510000,0],[1673470520000,0],[1673470530000,0],[1673470540000,0],[1673470550000,0],[1673470560000,0],[1673470570000,0],[1673470580000,0],[1673470590000,0],[1673470600000,0],[1673470610000,0],[1673470620000,0],[1673470630000,0],[1673470640000,0],[1673470650000,0],[1673470660000,0],[1673470670000,0],[1673470680000,0],[1673470690000,0],[1673470700000,0],[1673470710000,0],[1673470720000,0],[1673470730000,0],[1673470740000,0],[1673470750000,0],[1673470760000,0],[1673470770000,0],[1673470780000,0],[1673470790000,0],[1673470800000,0],[1673470810000,0],[1673470820000,0],[1673470830000,0],[1673470840000,0]]},{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.stats.http.responses.5xx","metricAgg":"max","label":"5xx","description":"Outgoing HTTP 5xx responses across all instances in the deployment.","units":"/s","format":"0,0.[00]","hasCalculation":false,"isDerivative":true},"data":[[1673470460000,null],[1673470470000,0],[1673470480000,0],[1673470490000,0],[1673470500000,0],[1673470510000,0],[1673470520000,0],[1673470530000,0],[1673470540000,0],[1673470550000,0],[1673470560000,0],[1673470570000,0],[1673470580000,0],[1673470590000,0],[1673470600000,0],[1673470610000,0],[1673470620000,0],[1673470630000,0],[1673470640000,0],[1673470650000,0],[1673470660000,0],[1673470670000,0],[1673470680000,0],[1673470690000,0],[1673470700000,0],[1673470710000,0],[1673470720000,0],[1673470730000,0],[1673470740000,0],[1673470750000,0],[1673470760000,0],[1673470770000,0],[1673470780000,0],[1673470790000,0],[1673470800000,0],[1673470810000,0],[1673470820000,0],[1673470830000,0],[1673470840000,0]]}],"app_search_total_engines":[{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.stats.product_usage.app_search.total_engines","metricAgg":"avg","label":"App Search Engines","description":"Current number of App Search engines within the Enterprise Search deployment.","units":"","format":"0.[00]","hasCalculation":false,"isDerivative":false},"data":[[1673470460000,0],[1673470470000,0],[1673470480000,0],[1673470490000,0],[1673470500000,0],[1673470510000,0],[1673470520000,0],[1673470530000,0],[1673470540000,0],[1673470550000,0],[1673470560000,0],[1673470570000,0],[1673470580000,0],[1673470590000,0],[1673470600000,0],[1673470610000,0],[1673470620000,0],[1673470630000,0],[1673470640000,0],[1673470650000,0],[1673470660000,0],[1673470670000,0],[1673470680000,0],[1673470690000,0],[1673470700000,0],[1673470710000,0],[1673470720000,0],[1673470730000,0],[1673470740000,0],[1673470750000,0],[1673470760000,0],[1673470770000,1],[1673470780000,1],[1673470790000,1],[1673470800000,1],[1673470810000,1],[1673470820000,1],[1673470830000,1],[1673470840000,1]]}],"crawler_workers":[{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.health.crawler.workers.pool_size","metricAgg":"max","label":"Total","title":"Crawler Workers","description":"The number of crawler workers configured across all instances of App Search.","units":"","format":"0.[00]","hasCalculation":false,"isDerivative":false},"data":[[1673470460000,20],[1673470470000,20],[1673470480000,20],[1673470490000,20],[1673470500000,20],[1673470510000,20],[1673470520000,20],[1673470530000,20],[1673470540000,20],[1673470550000,20],[1673470560000,20],[1673470570000,20],[1673470580000,20],[1673470590000,20],[1673470600000,20],[1673470610000,20],[1673470620000,20],[1673470630000,20],[1673470640000,20],[1673470650000,20],[1673470660000,20],[1673470670000,20],[1673470680000,20],[1673470690000,20],[1673470700000,20],[1673470710000,20],[1673470720000,20],[1673470730000,20],[1673470740000,20],[1673470750000,20],[1673470760000,20],[1673470770000,20],[1673470780000,20],[1673470790000,20],[1673470800000,20],[1673470810000,20],[1673470820000,20],[1673470830000,20],[1673470840000,20]]},{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.health.crawler.workers.active","metricAgg":"max","label":"Active","description":"Currently active App Search crawler workers.","units":"","format":"0.[00]","hasCalculation":false,"isDerivative":false},"data":[[1673470460000,0],[1673470470000,0],[1673470480000,0],[1673470490000,0],[1673470500000,0],[1673470510000,0],[1673470520000,0],[1673470530000,0],[1673470540000,0],[1673470550000,0],[1673470560000,0],[1673470570000,0],[1673470580000,0],[1673470590000,0],[1673470600000,0],[1673470610000,0],[1673470620000,0],[1673470630000,0],[1673470640000,0],[1673470650000,0],[1673470660000,0],[1673470670000,0],[1673470680000,0],[1673470690000,0],[1673470700000,0],[1673470710000,0],[1673470720000,0],[1673470730000,0],[1673470740000,0],[1673470750000,0],[1673470760000,0],[1673470770000,0],[1673470780000,0],[1673470790000,0],[1673470800000,0],[1673470810000,0],[1673470820000,0],[1673470830000,0],[1673470840000,0]]}],"workplace_search_total_sources":[{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.stats.product_usage.workplace_search.total_org_sources","metricAgg":"avg","label":"Org Sources","title":"Workpace Search Content Sources","description":"Current number of Workplace Search org-wide content sources within the Enterprise Search deployment.","units":"","format":"0.[00]","hasCalculation":false,"isDerivative":false},"data":[[1673470460000,0],[1673470470000,0],[1673470480000,0],[1673470490000,0],[1673470500000,0],[1673470510000,0],[1673470520000,0],[1673470530000,0],[1673470540000,0],[1673470550000,0],[1673470560000,0],[1673470570000,0],[1673470580000,0],[1673470590000,0],[1673470600000,0],[1673470610000,0],[1673470620000,0],[1673470630000,0],[1673470640000,0],[1673470650000,0],[1673470660000,0],[1673470670000,0],[1673470680000,0],[1673470690000,0],[1673470700000,0],[1673470710000,0],[1673470720000,0],[1673470730000,0],[1673470740000,0],[1673470750000,0],[1673470760000,0],[1673470770000,1],[1673470780000,1],[1673470790000,1],[1673470800000,1],[1673470810000,1],[1673470820000,1],[1673470830000,1],[1673470840000,1]]},{"bucket_size":"10 seconds","timeRange":{"min":1673470440000,"max":1673470860000},"metric":{"app":"enterprise_search","field":"enterprisesearch.stats.product_usage.workplace_search.total_private_sources","metricAgg":"avg","label":"Private Sources","description":"Current number of Workplace Search private content sources within the Enterprise Search deployment.","units":"","format":"0.[00]","hasCalculation":false,"isDerivative":false},"data":[[1673470460000,0],[1673470470000,0],[1673470480000,0],[1673470490000,0],[1673470500000,0],[1673470510000,0],[1673470520000,0],[1673470530000,0],[1673470540000,0],[1673470550000,0],[1673470560000,0],[1673470570000,0],[1673470580000,0],[1673470590000,0],[1673470600000,0],[1673470610000,0],[1673470620000,0],[1673470630000,0],[1673470640000,0],[1673470650000,0],[1673470660000,0],[1673470670000,0],[1673470680000,0],[1673470690000,0],[1673470700000,0],[1673470710000,0],[1673470720000,0],[1673470730000,0],[1673470740000,0],[1673470750000,0],[1673470760000,0],[1673470770000,0],[1673470780000,0],[1673470790000,0],[1673470800000,0],[1673470810000,0],[1673470820000,0],[1673470830000,0],[1673470840000,0]]}]}} diff --git a/x-pack/test/monitoring_api_integration/fixtures/packages/enterprisesearch-1.0.0.zip b/x-pack/test/monitoring_api_integration/fixtures/packages/enterprisesearch-1.0.0.zip new file mode 100644 index 0000000000000..b4c9c9a756ece Binary files /dev/null and b/x-pack/test/monitoring_api_integration/fixtures/packages/enterprisesearch-1.0.0.zip differ diff --git a/x-pack/test/monitoring_api_integration/packages.ts b/x-pack/test/monitoring_api_integration/packages.ts index 9c85b89fd1057..b7c42bd241f9d 100644 --- a/x-pack/test/monitoring_api_integration/packages.ts +++ b/x-pack/test/monitoring_api_integration/packages.ts @@ -7,7 +7,10 @@ import path from 'path'; -const PACKAGES = [{ name: 'beat', version: '0.0.1' }]; +const PACKAGES = [ + { name: 'beat', version: '0.0.1' }, + { name: 'enterprisesearch', version: '1.0.0' }, +]; export const getPackagesArgs = (): string[] => { return PACKAGES.flatMap((pkg, i) => { diff --git a/x-pack/test/monitoring_api_integration/scripts/transform_archive.js b/x-pack/test/monitoring_api_integration/scripts/transform_archive.js index 7f0e4e148624c..819e25ba325a5 100644 --- a/x-pack/test/monitoring_api_integration/scripts/transform_archive.js +++ b/x-pack/test/monitoring_api_integration/scripts/transform_archive.js @@ -56,6 +56,8 @@ const { ? 'kibana' : source.beat ? 'beats' + : source.enterprisesearch + ? 'ent-search' : source.elasticsearch ? 'es' : null; diff --git a/x-pack/test/monitoring_api_integration/utils/lifecycle_methods.ts b/x-pack/test/monitoring_api_integration/utils/lifecycle_methods.ts index bd7b86bfc69ba..c4b7bea2ea964 100644 --- a/x-pack/test/monitoring_api_integration/utils/lifecycle_methods.ts +++ b/x-pack/test/monitoring_api_integration/utils/lifecycle_methods.ts @@ -33,7 +33,7 @@ export const getLifecycleMethods = (getService: FtrProviderContext['getService'] // the tests suites. since the archiver doesn't have any reference to the // mappings it can't automatically delete it and we have to do the cleanup manually await deleteDataStream('.monitoring-*'); - await deleteDataStream('metrics-beats.stack_monitoring.*'); + await deleteDataStream('metrics-*.stack_monitoring.*'); }, }; };