-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Infra] Create new formulas for RX and TX metrics #188641
Comments
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
@roshan-elastic we need to define the labels for RX and TX metrics in the inventory and alerts flyout. Should we update the tooltips too? |
Hey @crespocarlos - I've updated the source docs for this. Would you mind updating the formulae in the doc for the new ones (I've commented you directly)? |
Might there be a better name than "Legacy" for this. "Non-normalized/Normalized" is wrong but something? |
Perhaps "Inbound/Outbount Traffic (per metricset.period)" and "Inbound/Outbount Traffic (per second)"? |
Yeah fair point on this. I like the suggestions - is there any language we could use which leaves out Elastic terminology? |
Hey @crespocarlos, I checked the issue description - so we want to replace the lens formulas with only the export const rx: LensBaseLayer = {
label: i18n.translate('xpack.metricsData.assetDetails.formulas.rx', {
defaultMessage: 'Network Inbound (RX)',
}),
value: 'sum(host.network.ingress.bytes) * 8',
format: 'bits',
decimals: 1,
};
export const tx: LensBaseLayer = {
label: i18n.translate('xpack.metricsData.assetDetails.formulas.tx', {
defaultMessage: 'Network Outbound (TX)',
}),
value: 'sum(host.network.egress.bytes) * 8',
format: 'bits',
decimals: 1,
}; and for the aggregation in the snapshot folder, we keep the old one (rename to |
We keep the old ones name untouched, otherwise it will affect existing alerts. The hosts view will only use the new one. Inventory and Alerts will use both. For the old ones, the only thing that changes is their label |
Hey @crespocarlos, Thanks for clarifying!
link to the wip rx file for reference. However, this query returns results so I am wondering if we can use it instead or if we need the |
Summary
Related issue
The current RX and TX metrics used in the Hosts View, Inventory UI and Inventory alert rule is incorrect. (more details #184099)
RX:
average(host.network.ingress.bytes) * 8 / (max(metricset.period, kql='host.network.ingress.bytes: *') / 1000)
TX:
average(host.network.egress.bytes) * 8 / (max(metricset.period, kql='host.network.egress.bytes: *') / 1000)
The calculated rate is wrong because it uses
metricset.period
. This setting can be configured with any interval in metricbeat. Therefore, the metric is not necessarily a rate per second.We need to create a new formula to compute the these metrics.
Lens
sum(host.network.ingress.bytes) * 8
withoutnormalizeByUnit
parametersum(host.network.egress.bytes) * 8
withoutnormalizeByUnit
parameterAggregation
We need to keep backward compatibility with the existing metrics in the Inventory UI and Inventory alert rule
Label for old metrics: Inbound Traffic (Legacy) / Outbound Traffice(Legacy)
Label for new metrics: Inbound Traffic / Outbound Traffic
Implementation hints
Acceptance Criteria
documentation
link should point to the new metricsTasks
The text was updated successfully, but these errors were encountered: