chore(queue): upgrade queue package and add metrics (#673)

* chore(queue): upgrade queue package and add metrics

add new metrics

	BusyWorkers    *prometheus.Desc
	SuccessTasks   *prometheus.Desc
	FailureTasks   *prometheus.Desc
	SubmittedTasks *prometheus.Desc

fix https://github.com/appleboy/gorush/issues/672

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* chore: update go version

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2022-05-05 13:56:28 +08:00
committed by GitHub
parent 2bba4b4fc4
commit a45769c24f
14 changed files with 167 additions and 146 deletions

View File

@@ -61,8 +61,9 @@ queue:
queue: gorush
redis:
addr: 127.0.0.1:6379
channel: gorush
size: 1024
group: gorush
consumer: gorush
stream_name: gorush
ios:
enabled: false