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

hosts alerts number #374

Closed
ltrilety opened this issue Mar 13, 2018 · 11 comments
Closed

hosts alerts number #374

ltrilety opened this issue Mar 13, 2018 · 11 comments
Assignees

Comments

@ltrilety
Copy link

ltrilety commented Mar 13, 2018

API nodes call is not always returning number of alerts per node, only when some alert happens for the node. That leads to situation when UI says No Data. Which is correct from UI perspective because there really are no data. However as monitoring software we are aware how many alerts we got. So proper behaviour for API will be to report 0 alerts in the case when no alert comes at all.

Tendrl version:
tendrl-api-1.6.1-1.el7.centos.noarch

@GowthamShanmugam
Copy link
Collaborator

@r0h4n
Copy link
Contributor

r0h4n commented Mar 14, 2018

@Tendrl/api @Tendrl/frontend Backend sets alert counter value to 0 as default. Could you guys check if tendrl/api or tendrl/ui correctly displays the default value (0) if no alerts found?

@shirshendu
Copy link

shirshendu commented Mar 14, 2018

image
We have "warning_count": "0" in the API. @ltrilety Could you please provide more detail on the scenario in which this key is absent?

@gnehapk
Copy link
Member

gnehapk commented Mar 14, 2018

@r0h4n @shirshendu As per @mcarrano comment , UI displays 0, if warning_count is 0 in API response else No Data in case no data is available for alert.

@ltrilety
Copy link
Author

My scenario is very simple, just import the cluster and go to the cluster details - Hosts page.

image

image

@r0h4n
Copy link
Contributor

r0h4n commented Mar 16, 2018

@GowthamShanmugam Please triage this, you have fixed this issue recently

@GowthamShanmugam
Copy link
Collaborator

@shirshendu only for cluster and volume only Api is returning alert, for nodes alert count api is not returning anything.

@GowthamShanmugam
Copy link
Collaborator

This issue is fixed, please verify and close this issue @ltrilety

@nthomas-redhat
Copy link
Contributor

@ltrilety ,Closing the issue. If you find any discrepancies, please re-open the issue

@ltrilety
Copy link
Author

ltrilety commented Apr 5, 2018

Checked on:
tendrl-ui-1.6.1-3.el7rhgs.noarch

looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants