[8.x] [Streams] Data ingestion tooltip (#217453) (#217479)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Streams] Data ingestion tooltip
(#217453)](https://github.com/elastic/kibana/pull/217453)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Luca
Wintergerst","email":"luca.wintergerst@elastic.co"},"sourceCommit":{"committedDate":"2025-04-08T10:27:09Z","message":"[Streams]
Data ingestion tooltip (#217453)\n\nAdds a tooltip to the histogram, and
adjusts the wording of the other\ningestion tooltips
slightly\n\nBefore:\n![CleanShot 2025-04-08 at 10
26\n28@2x](https://github.com/user-attachments/assets/49d9c242-9a3f-42a4-a787-c3a1f3da6b51)\nAfter:\n![CleanShot
2025-04-08 at 10
22\n33@2x](https://github.com/user-attachments/assets/a816be12-0d06-4184-9803-8b161932dc95)","sha":"05712f2bf88d5baa68afeabec9e9501c453e926e","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:obs-ux-logs","backport:version","Feature:Streams","v9.1.0","v8.19.0"],"title":"[Streams]
Data ingestion
tooltip","number":217453,"url":"https://github.com/elastic/kibana/pull/217453","mergeCommit":{"message":"[Streams]
Data ingestion tooltip (#217453)\n\nAdds a tooltip to the histogram, and
adjusts the wording of the other\ningestion tooltips
slightly\n\nBefore:\n![CleanShot 2025-04-08 at 10
26\n28@2x](https://github.com/user-attachments/assets/49d9c242-9a3f-42a4-a787-c3a1f3da6b51)\nAfter:\n![CleanShot
2025-04-08 at 10
22\n33@2x](https://github.com/user-attachments/assets/a816be12-0d06-4184-9803-8b161932dc95)","sha":"05712f2bf88d5baa68afeabec9e9501c453e926e"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/217453","number":217453,"mergeCommit":{"message":"[Streams]
Data ingestion tooltip (#217453)\n\nAdds a tooltip to the histogram, and
adjusts the wording of the other\ningestion tooltips
slightly\n\nBefore:\n![CleanShot 2025-04-08 at 10
26\n28@2x](https://github.com/user-attachments/assets/49d9c242-9a3f-42a4-a787-c3a1f3da6b51)\nAfter:\n![CleanShot
2025-04-08 at 10
22\n33@2x](https://github.com/user-attachments/assets/a816be12-0d06-4184-9803-8b161932dc95)","sha":"05712f2bf88d5baa68afeabec9e9501c453e926e"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Luca Wintergerst <luca.wintergerst@elastic.co>
This commit is contained in:
Kibana Machine 2025-04-08 14:46:14 +02:00 committed by GitHub
parent a6915c1a32
commit 1fb1f1945b
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"