(ui): Add QueueSizeMetricsChart component

This commit is contained in:
Ken Hibino
2021-11-27 08:03:26 -08:00
parent d60905334f
commit d7ac077083
5 changed files with 96 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ func newGetMetricsHandlerFunc(client *http.Client) http.HandlerFunc {
const (
baseAddr = "http://localhost:9090"
apiPath = "/api/v1/query_range"
promQL = "asynq_tasks_enqueued_total"
promQL = "asynq_queue_size"
)
var b strings.Builder
v := url.Values{}