mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
# Backport This will backport the following commits from `main` to `8.16`: - [[ML] Update allocations tooltip to clarify that it's per node (#197099)](https://github.com/elastic/kibana/pull/197099) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Liam Thompson","email":"32779855+leemthompo@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-23T15:30:13Z","message":"[ML] Update allocations tooltip to clarify that it's per node (#197099)\n\nClarifies text to mention nodes, conditional on being not-serverless","sha":"ea4ce57141019606b148016f667dd7a0cf98ff8c","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","v9.0.0","Team:ML","v8.16.0","backport:version"],"title":"[ML] Update allocations tooltip to clarify that it's per node","number":197099,"url":"https://github.com/elastic/kibana/pull/197099","mergeCommit":{"message":"[ML] Update allocations tooltip to clarify that it's per node (#197099)\n\nClarifies text to mention nodes, conditional on being not-serverless","sha":"ea4ce57141019606b148016f667dd7a0cf98ff8c"}},"sourceBranch":"main","suggestedTargetBranches":["8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197099","number":197099,"mergeCommit":{"message":"[ML] Update allocations tooltip to clarify that it's per node (#197099)\n\nClarifies text to mention nodes, conditional on being not-serverless","sha":"ea4ce57141019606b148016f667dd7a0cf98ff8c"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
This commit is contained in:
parent
c959299149
commit
3d98f6c3f7
1 changed files with 16 additions and 3 deletions
|
@ -24,6 +24,7 @@ import type {
|
|||
NodeDeploymentStatsResponse,
|
||||
} from '../../../../common/types/trained_models';
|
||||
import { useFieldFormatter } from '../../contexts/kibana/use_field_formatter';
|
||||
import { useEnabledFeatures } from '../../contexts/ml';
|
||||
|
||||
interface AllocatedModelsProps {
|
||||
models: NodeDeploymentStatsResponse['allocated_models'];
|
||||
|
@ -38,6 +39,7 @@ export const AllocatedModels: FC<AllocatedModelsProps> = ({
|
|||
const dateFormatter = useFieldFormatter(FIELD_FORMAT_IDS.DATE);
|
||||
const durationFormatter = useFieldFormatter(FIELD_FORMAT_IDS.DURATION);
|
||||
const euiTheme = useEuiTheme();
|
||||
const { showNodeInfo } = useEnabledFeatures();
|
||||
|
||||
const columns: Array<EuiBasicTableColumn<AllocatedModel>> = [
|
||||
{
|
||||
|
@ -105,9 +107,20 @@ export const AllocatedModels: FC<AllocatedModelsProps> = ({
|
|||
width: '8%',
|
||||
name: (
|
||||
<EuiToolTip
|
||||
content={i18n.translate('xpack.ml.trainedModels.nodesList.modelsList.allocationTooltip', {
|
||||
defaultMessage: 'number_of_allocations times threads_per_allocation',
|
||||
})}
|
||||
content={
|
||||
showNodeInfo
|
||||
? i18n.translate(
|
||||
'xpack.ml.trainedModels.nodesList.modelsList.allocationTooltipNodes',
|
||||
{
|
||||
defaultMessage:
|
||||
'Number of allocations per node multiplied by number of threads per allocation',
|
||||
}
|
||||
)
|
||||
: i18n.translate('xpack.ml.trainedModels.nodesList.modelsList.allocationTooltip', {
|
||||
defaultMessage:
|
||||
'Number of allocations multiplied by number of threads per allocation',
|
||||
})
|
||||
}
|
||||
>
|
||||
<span>
|
||||
{i18n.translate('xpack.ml.trainedModels.nodesList.modelsList.allocationHeader', {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue