Skip to content
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

[Metrics UI] context.value is rendered as NaN% by Inventory alert in No Data state #73784

Closed
hendry-lim opened this issue Jul 30, 2020 · 3 comments · Fixed by #78038
Closed
Labels
bug Fixes for quality problems that affect the customer experience Feature:Metrics UI Metrics UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services

Comments

@hendry-lim
Copy link

hendry-lim commented Jul 30, 2020

Kibana version: 7.9.0-SNAPSHOT

Elasticsearch version: 7.9.0-SNAPSHOT

Browser version: Firefox 78.0.2

Browser OS version: openSUSE

Original install method (e.g. download page, yum, from source, etc.): Docker

Describe the bug:
context.value.condition0 is rendered as NaN% by Inventory alert.
The current CPU usage value is NaN%, because the host es05 on the screenshot is an Elasticsearch instance running in Docker container.

Steps to reproduce:

  1. In Kibana, go to Management --> Alerts and Actions
  2. Create an Inventory alert
  3. Enable the option Alert me if there's no data
  4. Add {{context.value.condition0}} to the alert message body

Expected behavior:
{{context.value.condition0}} should probably be rendered as an empty string.

Screenshots (if relevant):
image

@flash1293 flash1293 added the Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services label Aug 20, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

@Zacqary Zacqary changed the title [Metrics UI] context.value.condition0 is rendered as NaN% by Inventory alert [Metrics UI] context.value is rendered as NaN% by Inventory alert in No Data state Aug 20, 2020
@Zacqary Zacqary added bug Fixes for quality problems that affect the customer experience Feature:Metrics UI Metrics UI feature labels Aug 20, 2020
@Zacqary
Copy link
Contributor

Zacqary commented Aug 20, 2020

Was able to confirm this is happening when an inventory alert reports No Data. I think context.value.conditionN should display something descriptive like [No Data] in this case, just in case you're not making use of the alertState value like in the example above.

The steps I took were:

  1. Run Metricbeat to ingest data
  2. Create an inventory alert
  3. Enable Alert me if there's no data
  4. Create the alert, wait for it to fire and report an actual number
  5. Stop Metricbeat to force a No Data state

@hendry-lim I've updated the issue name to reflect what I think is happening, but I want to make sure. Can you confirm that context.value is working as expected when your hosts are actively reporting new metric data? And that this is only affecting the No Data state?

@hendry-lim
Copy link
Author

@Zacqary Yes, that is correct. This only affects Inventory alert with No Data state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Metrics UI Metrics UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants