[GH-ISSUE #206] [FEATURE REQUEST] JSON output flag for asynq stats #2095

Closed
opened 2026-03-15 19:08:36 +03:00 by kerem · 5 comments
Owner

Originally created by @rverton on GitHub (Oct 20, 2020).
Original GitHub issue: https://github.com/hibiken/asynq/issues/206

Originally assigned to: @hibiken on GitHub.

To monitor the asynq queue, it would be nice to periodically retrieve stats (like the asynq stats command currently does), but in a format which can be piped into monitoring tools.

A simple and easy way to do this would be to add a --json flag to asynq stats which outputs all gathered stats as json. This stats can then periodically be retrieved (with tools like Telegraf) and then displayed in Grafana.

Originally created by @rverton on GitHub (Oct 20, 2020). Original GitHub issue: https://github.com/hibiken/asynq/issues/206 Originally assigned to: @hibiken on GitHub. To monitor the asynq queue, it would be nice to periodically retrieve stats (like the `asynq stats` command currently does), but in a format which can be piped into monitoring tools. A simple and easy way to do this would be to add a `--json` flag to `asynq stats` which outputs all gathered stats as json. This stats can then periodically be retrieved (with tools like Telegraf) and then displayed in Grafana.
kerem 2026-03-15 19:08:36 +03:00
Author
Owner

@hibiken commented on GitHub (Oct 21, 2020):

Thanks for opening this issue!

Seems like a good option to have. I'll include this change in the next release.

<!-- gh-comment-id:713709681 --> @hibiken commented on GitHub (Oct 21, 2020): Thanks for opening this issue! Seems like a good option to have. I'll include this change in the next release.
Author
Owner

@c-nv-s commented on GitHub (Apr 23, 2021):

definitely in favor of this feature too!

<!-- gh-comment-id:825343901 --> @c-nv-s commented on GitHub (Apr 23, 2021): definitely in favor of this feature too!
Author
Owner

@c-nv-s commented on GitHub (Nov 30, 2021):

@hibiken any update on this request?

<!-- gh-comment-id:982201799 --> @c-nv-s commented on GitHub (Nov 30, 2021): @hibiken any update on this request?
Author
Owner

@hibiken commented on GitHub (Nov 30, 2021):

@c-nv-s thank you for the comment!
Sorry, this feature work has been de-prioritized because I had other features to work on. I'm currently working on metrics related work, so I may be able to work on this soon.

But if anyone's interested, feel free to open a PR for this 👍

<!-- gh-comment-id:982701628 --> @hibiken commented on GitHub (Nov 30, 2021): @c-nv-s thank you for the comment! Sorry, this feature work has been de-prioritized because I had other features to work on. I'm currently working on metrics related work, so I may be able to work on this soon. But if anyone's interested, feel free to open a PR for this 👍
Author
Owner

@mdibaiee commented on GitHub (Dec 31, 2021):

Hello 👋
I just saw this issue and thought it was easy enough to fix in my spare time, so I just created a PR. Happy to apply any feedback you have on it.

P.S.: Happy new year!

<!-- gh-comment-id:1003452899 --> @mdibaiee commented on GitHub (Dec 31, 2021): Hello 👋 I just saw this issue and thought it was easy enough to fix in my spare time, so I just created a PR. Happy to apply any feedback you have on it. P.S.: Happy new year!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#2095
No description provided.