[GH-ISSUE #287] Asynqmon prometheus query fails #769

Open
opened 2026-03-15 21:31:10 +03:00 by kerem · 0 comments
Owner

Originally created by @abit2 on GitHub (Jan 10, 2023).
Original GitHub issue: https://github.com/hibiken/asynqmon/issues/287

What I want to achieve

I would like the metrics that the asynqmon generate to be scrapped by prometheus.

Setup

Running asynqmon in kubernetes cluster with net/http

asynqmon.New(asynqmon.Options{
		RootPath:     "/", // RootPath specifies the root for asynqmon app
		RedisConnOpt: rdbClient,
	})

Error

Going to api/metrics, I get the following error

failed to fetch "asynq_tasks_enqueued_total{state=\"archived\",QUEUE_FILTER}": Get "/api/v1/query_range?end=1673346555&query=asynq_tasks_enqueued_total%7Bstate%3D%22archived%22%2C%7D&start=1673342955&step=10": unsupported protocol scheme ""
Originally created by @abit2 on GitHub (Jan 10, 2023). Original GitHub issue: https://github.com/hibiken/asynqmon/issues/287 ## What I want to achieve I would like the metrics that the asynqmon generate to be scrapped by prometheus. ## Setup Running asynqmon in kubernetes cluster with `net/http` ``` asynqmon.New(asynqmon.Options{ RootPath: "/", // RootPath specifies the root for asynqmon app RedisConnOpt: rdbClient, }) ``` ## Error Going to `api/metrics`, I get the following error ``` failed to fetch "asynq_tasks_enqueued_total{state=\"archived\",QUEUE_FILTER}": Get "/api/v1/query_range?end=1673346555&query=asynq_tasks_enqueued_total%7Bstate%3D%22archived%22%2C%7D&start=1673342955&step=10": unsupported protocol scheme "" ```
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/asynqmon#769
No description provided.