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

alerta returns only 50 heartbeats in cli and webui #1281

Closed
3hedgehogs opened this issue Jul 31, 2020 · 3 comments
Closed

alerta returns only 50 heartbeats in cli and webui #1281

3hedgehogs opened this issue Jul 31, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@3hedgehogs
Copy link

Issue Summary
alerta command line tool and webui return only 50 heartbeats from more then 250 in DB

Environment
alerta 8.0.3
alerta client 8.0.0
requests 2.24.0
click 7.1.2

  • Database: [Postgres]

Expected behavior
Return all Hearbeats

@3hedgehogs 3hedgehogs changed the title alerta return only 50 hearbeats in cli and webui alerta returns only 50 hearbeats in cli and webui Jul 31, 2020
@3hedgehogs 3hedgehogs changed the title alerta returns only 50 hearbeats in cli and webui alerta returns only 50 heatrbeats in cli and webui Jul 31, 2020
@3hedgehogs 3hedgehogs changed the title alerta returns only 50 heatrbeats in cli and webui alerta returns only 50 heartbeats in cli and webui Jul 31, 2020
@3hedgehogs
Copy link
Author

I have found as workaround is to set in .alertad.conf
QUERY_LIMIT=100000 DEFAULT_PAGE_SIZE=100000
But probably api requests and 'alerta heartbeats --alert' have to work and return all heartbeats ?

@lotooo
Copy link

lotooo commented Sep 3, 2020

Same issue here , thanks for the workaround. I'll test that.

$ alerta version
alerta 8.0.2
alerta client 8.0.0
requests 2.22.0
click 7.0

@satterly
Copy link
Member

The backend API doesn't support paging for the heartbeats list so for now your only option is to increase the page size so that the returned response contains all the heartbeats. Setting it to 100,000 seems unnecessary. 500 or 1,000 would be more appropriate, I would have thought.

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

No branches or pull requests

3 participants