-
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.
Merge branch 'ftr/split-functional_with_es_ssl-config' of github.com:…
…dmlemeshko/kibana into ftr/split-functional_with_es_ssl-config
- Loading branch information
Showing
385 changed files
with
8,961 additions
and
2,493 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
25 changes: 0 additions & 25 deletions
25
packages/core/http/core-http-server-internal/src/csp/csp_config.test.mocks.ts
This file was deleted.
Oops, something went wrong.
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
43 changes: 43 additions & 0 deletions
43
...s/kbn-apm-synthtrace/src/lib/apm/aggregators/create_service_summary_metrics_aggregator.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,43 @@ | ||
/* | ||
* 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 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
import { ApmFields, hashKeysOf } from '@kbn/apm-synthtrace-client'; | ||
import { identity, noop, pick } from 'lodash'; | ||
import { createApmMetricAggregator } from './create_apm_metric_aggregator'; | ||
|
||
const KEY_FIELDS: Array<keyof ApmFields> = [ | ||
'agent.name', | ||
'service.environment', | ||
'service.name', | ||
'service.language.name', | ||
]; | ||
|
||
export function createServiceSummaryMetricsAggregator(flushInterval: string) { | ||
return createApmMetricAggregator( | ||
{ | ||
filter: () => true, | ||
getAggregateKey: (event) => { | ||
// see https://github.com/elastic/apm-server/blob/main/x-pack/apm-server/aggregation/txmetrics/aggregator.go | ||
return hashKeysOf(event, KEY_FIELDS); | ||
}, | ||
flushInterval, | ||
init: (event) => { | ||
const set = pick(event, KEY_FIELDS); | ||
|
||
return { | ||
...set, | ||
'metricset.name': 'service_summary', | ||
'metricset.interval': flushInterval, | ||
'processor.event': 'metric', | ||
'processor.name': 'metric', | ||
}; | ||
}, | ||
}, | ||
noop, | ||
identity | ||
); | ||
} |
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
49 changes: 49 additions & 0 deletions
49
packages/kbn-apm-synthtrace/src/scenarios/services_without_transactions.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,49 @@ | ||
/* | ||
* 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 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
import { apm, ApmFields } from '@kbn/apm-synthtrace-client'; | ||
import { Scenario } from '../cli/scenario'; | ||
|
||
const scenario: Scenario<ApmFields> = async ({ logger, scenarioOpts }) => { | ||
return { | ||
generate: ({ range }) => { | ||
const withTx = apm | ||
.service('service-with-transactions', 'production', 'java') | ||
.instance('instance'); | ||
|
||
const withErrorsOnly = apm | ||
.service('service-with-errors-only', 'production', 'java') | ||
.instance('instance'); | ||
|
||
const withAppMetricsOnly = apm | ||
.service('service-with-app-metrics-only', 'production', 'java') | ||
.instance('instance'); | ||
|
||
return range | ||
.interval('1m') | ||
.rate(1) | ||
.generator((timestamp) => { | ||
return [ | ||
withTx.transaction('GET /api').duration(100).timestamp(timestamp), | ||
withErrorsOnly | ||
.error({ | ||
message: 'An unknown error occurred', | ||
}) | ||
.timestamp(timestamp), | ||
withAppMetricsOnly | ||
.appMetrics({ | ||
'system.memory.actual.free': 1, | ||
'system.memory.total': 2, | ||
}) | ||
.timestamp(timestamp), | ||
]; | ||
}); | ||
}, | ||
}; | ||
}; | ||
|
||
export default scenario; |
Oops, something went wrong.