mirror of
https://github.com/hibiken/asynqmon.git
synced 2026-04-26 17:45:50 +03:00
[GH-ISSUE #222] The Metrics menu isn't displaying after Prometheus integrated #55
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynqmon#55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @raecoo on GitHub (Mar 17, 2022).
Original GitHub issue: https://github.com/hibiken/asynqmon/issues/222
I’m tried to integrate the Prometheus with asynqmon to monitor our tasks by the following command, the Metrics menu doesn't appear in the sidebar, but I can access using the
http://localhost:8080/q/metrics?duration=86400to access the metrics chart../asynqmon -redis-addr="127.0.0.1:6379" -enable-metrics-exporter=true -prometheus-addr=http://127.0.0.1:9090 -redis-db=1I read the relevant code of the UI part and found it seems like a bug.
https://github.com/hibiken/asynqmon/blob/master/ui/src/parseFlags.ts#L14
I think it should be assigned in the last else block, otherwise, it won't show.
https://github.com/hibiken/asynqmon/blob/master/ui/src/App.tsx#L244
Please correct me if anything wrong.
@hibiken commented on GitHub (Mar 17, 2022):
@raecoo Thank you for reporting this!
You are right, I somehow managed to have an empty else block in the committed code 😆
I'll fix this now, and release a new version of the Web UI with the fix!
@hibiken commented on GitHub (Mar 17, 2022):
Just released a new version v.0.6.1. Please let me know if you are still seeing the issue!
@raecoo commented on GitHub (Mar 17, 2022):
Pretty cool, I've tested and the problem resolved.
Thank you for the fast response.
@piperck commented on GitHub (Mar 17, 2022):
Very helpful thank you. @hibiken