Skip to content

Commit

Permalink
[8.16] [ML] Update allocations tooltip to clarify that it is per node (
Browse files Browse the repository at this point in the history
…elastic#197099) (elastic#197488)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[ML] Update allocations tooltip to clarify that it's per node
(elastic#197099)](elastic#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":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-23T15:30:13Z","message":"[ML]
Update allocations tooltip to clarify that it's per node
(elastic#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
(elastic#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
(elastic#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 <[email protected]>
  • Loading branch information
kibanamachine and leemthompo authored Oct 23, 2024
1 parent c959299 commit 3d98f6c
Showing 1 changed file with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand All @@ -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>> = [
{
Expand Down Expand Up @@ -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', {
Expand Down

0 comments on commit 3d98f6c

Please sign in to comment.