-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[APM] Generate stack monitoring data (#118302)
* Generate stack monitoring data * Update file import * Fix imports after bad merge from upstream * A cluster stats generator * Wiring kibana docs to ES docs * Adding fields to get kibana cards rendering * [apm-synthtrace] Export types Fields, ApmException, ApmSynthtraceEsClient * [APM] Update integration tests with synthtrace changes * [APM] Update Cypress E2E tests with synthtrace changes * Fix lint errors Co-authored-by: Milton Hultgren <milton.hultgren@elastic.co> Co-authored-by: Mat Schaffer <mat@elastic.co>
- Loading branch information
1 parent
a0650c7
commit 39a29cc
Showing
72 changed files
with
1,022 additions
and
679 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/* | ||
* 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 { Fields } from '../entity'; | ||
|
||
export type ApmApplicationMetricFields = Partial<{ | ||
'system.process.memory.size': number; | ||
'system.memory.actual.free': number; | ||
'system.memory.total': number; | ||
'system.cpu.total.norm.pct': number; | ||
'system.process.memory.rss.bytes': number; | ||
'system.process.cpu.total.norm.pct': number; | ||
}>; | ||
|
||
export type ApmUserAgentFields = Partial<{ | ||
'user_agent.original': string; | ||
'user_agent.os.name': string; | ||
'user_agent.name': string; | ||
'user_agent.device.name': string; | ||
'user_agent.version': number; | ||
}>; | ||
|
||
export interface ApmException { | ||
message: string; | ||
} | ||
|
||
export type ApmFields = Fields & | ||
Partial<{ | ||
'agent.name': string; | ||
'agent.version': string; | ||
'container.id': string; | ||
'ecs.version': string; | ||
'event.outcome': string; | ||
'event.ingested': number; | ||
'error.id': string; | ||
'error.exception': ApmException[]; | ||
'error.grouping_name': string; | ||
'error.grouping_key': string; | ||
'host.name': string; | ||
'kubernetes.pod.uid': string; | ||
'metricset.name': string; | ||
'observer.version': string; | ||
'observer.version_major': number; | ||
'parent.id': string; | ||
'processor.event': string; | ||
'processor.name': string; | ||
'trace.id': string; | ||
'transaction.name': string; | ||
'transaction.type': string; | ||
'transaction.id': string; | ||
'transaction.duration.us': number; | ||
'transaction.duration.histogram': { | ||
values: number[]; | ||
counts: number[]; | ||
}; | ||
'transaction.sampled': true; | ||
'service.name': string; | ||
'service.environment': string; | ||
'service.node.name': string; | ||
'span.id': string; | ||
'span.name': string; | ||
'span.type': string; | ||
'span.subtype': string; | ||
'span.duration.us': number; | ||
'span.destination.service.name': string; | ||
'span.destination.service.resource': string; | ||
'span.destination.service.type': string; | ||
'span.destination.service.response_time.sum.us': number; | ||
'span.destination.service.response_time.count': number; | ||
'span.self_time.count': number; | ||
'span.self_time.sum.us': number; | ||
}> & | ||
ApmApplicationMetricFields; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* 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 { service } from './service'; | ||
import { browser } from './browser'; | ||
import { getTransactionMetrics } from './utils/get_transaction_metrics'; | ||
import { getSpanDestinationMetrics } from './utils/get_span_destination_metrics'; | ||
import { getObserverDefaults } from './defaults/get_observer_defaults'; | ||
import { getChromeUserAgentDefaults } from './defaults/get_chrome_user_agent_defaults'; | ||
import { apmEventsToElasticsearchOutput } from './utils/apm_events_to_elasticsearch_output'; | ||
import { getBreakdownMetrics } from './utils/get_breakdown_metrics'; | ||
import { getApmWriteTargets } from './utils/get_apm_write_targets'; | ||
import { ApmSynthtraceEsClient } from './client/apm_synthtrace_es_client'; | ||
|
||
import type { ApmException } from './apm_fields'; | ||
|
||
export const apm = { | ||
service, | ||
browser, | ||
getTransactionMetrics, | ||
getSpanDestinationMetrics, | ||
getObserverDefaults, | ||
getChromeUserAgentDefaults, | ||
apmEventsToElasticsearchOutput, | ||
getBreakdownMetrics, | ||
getApmWriteTargets, | ||
ApmSynthtraceEsClient, | ||
}; | ||
|
||
export type { ApmSynthtraceEsClient, ApmException }; |
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
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.