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

Add endpoint in API server for query status of queue #11

Open
zamronypj opened this Issue Mar 1, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@zamronypj
Copy link

zamronypj commented Mar 1, 2019

Ability to check current queue status (for example current total pending request in queue, total capacity of queue, request per second) and exposing it as separate endpoint in API server.

This capability is useful for example, Developer can build monitoring application with main purpose is to periodically check this queue status. When queue almost full, it spawns new application instance/server automatically to handle additional load. When amount pending request in queue becomes lower, monitoring application can shutdown application instance to reduce resource.

@piradoiv

This comment has been minimized.

Copy link
Owner

piradoiv commented Mar 1, 2019

First of all, thank you for this and the other comments and issues you've created, it's a motivation boost to continue with this project 😄. Let me try to explain a bit what's in my head about the API.

For monitoring purposes, I was thinking about exposing an endpoint for Prometheus, so you can build a dashboard with Grafana, and configure there alerts and triggers.

The management API, while at the moment just sends and receive requests, could include the stats endpoint you've mentioned, but also configure in real time any Prack feature from another service.

This status endpoint is a really good starting point for the API. Thanks again!

@piradoiv piradoiv added this to the 1.0.0 milestone Mar 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.