mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Fleet] Display metrics tooltip on Agent details page (#152153)
This commit is contained in:
parent
0e2a448034
commit
e2219e000f
1 changed files with 38 additions and 6 deletions
|
@ -52,15 +52,47 @@ export const AgentDetailsOverviewSection: React.FunctionComponent<{
|
|||
<EuiFlexGroup direction="column" gutterSize="m">
|
||||
{[
|
||||
{
|
||||
title: i18n.translate('xpack.fleet.agentDetails.cpuLabel', {
|
||||
defaultMessage: 'CPU',
|
||||
}),
|
||||
title: (
|
||||
<EuiToolTip
|
||||
content={
|
||||
<FormattedMessage
|
||||
id="xpack.fleet.agentDetails.cpuTooltip"
|
||||
defaultMessage="Average CPU usage in the last 5 minutes"
|
||||
/>
|
||||
}
|
||||
>
|
||||
<span>
|
||||
<FormattedMessage
|
||||
id="xpack.fleet.agentDetails.cpuTitle"
|
||||
defaultMessage="CPU"
|
||||
/>
|
||||
|
||||
<EuiIcon type="iInCircle" />
|
||||
</span>
|
||||
</EuiToolTip>
|
||||
),
|
||||
description: formatAgentCPU(agent.metrics, agentPolicy),
|
||||
},
|
||||
{
|
||||
title: i18n.translate('xpack.fleet.agentDetails.memoryLabel', {
|
||||
defaultMessage: 'Memory',
|
||||
}),
|
||||
title: (
|
||||
<EuiToolTip
|
||||
content={
|
||||
<FormattedMessage
|
||||
id="xpack.fleet.agentDetails.memoryTooltip"
|
||||
defaultMessage="Average memory usage in the last 5 minutes"
|
||||
/>
|
||||
}
|
||||
>
|
||||
<span>
|
||||
<FormattedMessage
|
||||
id="xpack.fleet.agentDetails.memoryTitle"
|
||||
defaultMessage="Memory"
|
||||
/>
|
||||
|
||||
<EuiIcon type="iInCircle" />
|
||||
</span>
|
||||
</EuiToolTip>
|
||||
),
|
||||
description: formatAgentMemory(agent.metrics, agentPolicy),
|
||||
},
|
||||
].map(({ title, description }) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue