[Streams] Data ingestion tooltip (#217453)

Adds a tooltip to the histogram, and adjusts the wording of the other
ingestion tooltips slightly

Before:
![CleanShot 2025-04-08 at 10 26
28@2x](https://github.com/user-attachments/assets/49d9c242-9a3f-42a4-a787-c3a1f3da6b51)
After:
![CleanShot 2025-04-08 at 10 22
33@2x](https://github.com/user-attachments/assets/a816be12-0d06-4184-9803-8b161932dc95)
This commit is contained in:
Luca Wintergerst 2025-04-08 12:27:09 +02:00 committed by GitHub
parent 0a3e1fa3d8
commit 05712f2bf8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 23 additions and 10 deletions

View file

@ -17,8 +17,9 @@ import {
EuiLoadingChart,
EuiPanel,
EuiSpacer,
EuiText,
useEuiTheme,
EuiIconTip,
EuiText,
} from '@elastic/eui';
import {
AreaSeries,
@ -59,13 +60,25 @@ export function IngestionRate({
<EuiPanel hasShadow={false} hasBorder={false} paddingSize="s">
<EuiFlexGroup alignItems="center">
<EuiFlexItem grow={3}>
<EuiText>
<h5>
{i18n.translate('xpack.streams.streamDetailLifecycle.ingestionRatePanel', {
defaultMessage: 'Ingestion rate',
})}
</h5>
</EuiText>
<EuiFlexGroup gutterSize="xs" alignItems="center">
<EuiText>
<h5>
{i18n.translate('xpack.streams.streamDetailLifecycle.ingestionRatePanel', {
defaultMessage: 'Ingestion rate',
})}
</h5>
</EuiText>
<EuiIconTip
content={i18n.translate(
'xpack.streams.streamDetailLifecycle.ingestionRatePanelTooltip',
{
defaultMessage:
'Approximate average. Interval adjusts dynamically based on the time range. Calculated using the average document size in the stream, multiplied with the number of documents in the time bucket.',
}
)}
position="right"
/>
</EuiFlexGroup>
</EuiFlexItem>
<EuiFlexItem grow={false}>

View file

@ -175,7 +175,7 @@ export function RetentionMetadata({
})}
tip={i18n.translate('xpack.streams.streamDetailLifecycle.ingestionRateDetails', {
defaultMessage:
'Estimated average (stream total size divided by the number of days since creation).',
'Approximate average (stream total size divided by the number of days since creation).',
})}
value={
statsError ? (

View file

@ -144,7 +144,7 @@ export function StreamStatsPanel({ definition }: StreamStatsPanelProps) {
'xpack.streams.streamDetailLifecycle.ingestionRateDetails',
{
defaultMessage:
'Estimated average (stream total size divided by the number of days since creation).',
'Approximate average (stream total size divided by the number of days since creation).',
}
)}
position="right"