-
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.
Browse files
Browse the repository at this point in the history
* [APM] JVM List view & JVM metrics page Closes #43765. * Add service node metadata * Use service node terminology * Use asPercent for CPU * Tooltip for truncated elements * Add processor.event filters * Use service.node.name * Sort client-side only * Add processor.event filter to service nodes projection
- Loading branch information
1 parent
f42a06c
commit 26c9c26
Showing
39 changed files
with
941 additions
and
70 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
x-pack/legacy/plugins/apm/common/__snapshots__/elasticsearch_fieldnames.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
46 changes: 46 additions & 0 deletions
46
x-pack/legacy/plugins/apm/common/projections/service_nodes.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,46 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { Setup } from '../../server/lib/helpers/setup_request'; | ||
import { | ||
SERVICE_NAME, | ||
SERVICE_NODE_NAME, | ||
PROCESSOR_EVENT | ||
} from '../elasticsearch_fieldnames'; | ||
import { rangeFilter } from '../../server/lib/helpers/range_filter'; | ||
|
||
export function getServiceNodesProjection({ | ||
setup, | ||
serviceName | ||
}: { | ||
setup: Setup; | ||
serviceName: string; | ||
}) { | ||
const { start, end, uiFiltersES, config } = setup; | ||
|
||
return { | ||
index: config.get<string>('apm_oss.metricsIndices'), | ||
body: { | ||
query: { | ||
bool: { | ||
filter: [ | ||
{ term: { [SERVICE_NAME]: serviceName } }, | ||
{ term: { [PROCESSOR_EVENT]: 'metric' } }, | ||
{ range: rangeFilter(start, end) }, | ||
...uiFiltersES | ||
] | ||
} | ||
}, | ||
aggs: { | ||
nodes: { | ||
terms: { | ||
field: SERVICE_NODE_NAME | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} |
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
Oops, something went wrong.