[PR #366] [MERGED] Queue metrics exporter #723

Closed
opened 2026-03-02 06:05:20 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hibiken/asynq/pull/366
Author: @hibiken
Created: 12/16/2021
Status: Merged
Merged: 12/16/2021
Merged by: @hibiken

Base: masterHead: tools/metrics_exporter


📝 Commits (10+)

  • 27fe655 Create metrics_exporter tool
  • f04f7ee Add command-line flags
  • 242dcfc Read queue info from redis
  • 75ecaa8 Add more metrics
  • 57a866a Fix flag
  • f06ac6e Create x/metrics package
  • 90254fb Export queue size metrics
  • 358e34c Rename to QueueMetricsCollector
  • 68ca0a4 Export queue latency metrics from QueueMetricsCollector
  • a355838 Export queue memory usage from QueueMetricsCollector

📊 Changes

8 files changed (+585 additions, -6 deletions)

View changed files

📝 .gitignore (+3 -2)
📝 CHANGELOG.md (+5 -0)
📝 tools/go.mod (+9 -4)
📝 tools/go.sum (+80 -0)
tools/metrics_exporter/main.go (+56 -0)
x/go.mod (+12 -0)
x/go.sum (+256 -0)
x/metrics/metrics.go (+164 -0)

📄 Description

Changes:

  • Added x/metrics package which implements Prometheus collector for Asynq queues
  • Added tools/metrics_exporter binary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hibiken/asynq/pull/366 **Author:** [@hibiken](https://github.com/hibiken) **Created:** 12/16/2021 **Status:** ✅ Merged **Merged:** 12/16/2021 **Merged by:** [@hibiken](https://github.com/hibiken) **Base:** `master` ← **Head:** `tools/metrics_exporter` --- ### 📝 Commits (10+) - [`27fe655`](https://github.com/hibiken/asynq/commit/27fe6554d6c178d10e8d53c543d3d444dc186221) Create metrics_exporter tool - [`f04f7ee`](https://github.com/hibiken/asynq/commit/f04f7eea936812c8eee7cee92e0298fa952f974d) Add command-line flags - [`242dcfc`](https://github.com/hibiken/asynq/commit/242dcfcc4c71cda52cc96623af4900b309c010bc) Read queue info from redis - [`75ecaa8`](https://github.com/hibiken/asynq/commit/75ecaa892e87bb545c917ef87c99f63c2f0be18c) Add more metrics - [`57a866a`](https://github.com/hibiken/asynq/commit/57a866a0067e8271853fa23bae64a28272143ec2) Fix flag - [`f06ac6e`](https://github.com/hibiken/asynq/commit/f06ac6e30540957a97446f38ed5187fee371e548) Create x/metrics package - [`90254fb`](https://github.com/hibiken/asynq/commit/90254fbcb1bf2b8a0a9b2dc2a5312836c31a6556) Export queue size metrics - [`358e34c`](https://github.com/hibiken/asynq/commit/358e34cc5abf6e1c5e7feffd00aca157a1808fea) Rename to QueueMetricsCollector - [`68ca0a4`](https://github.com/hibiken/asynq/commit/68ca0a4aa84695bf40a279ab7c2a664e451aa516) Export queue latency metrics from QueueMetricsCollector - [`a355838`](https://github.com/hibiken/asynq/commit/a355838bc3769bb3b49c5817628d2e973a8b14a0) Export queue memory usage from QueueMetricsCollector ### 📊 Changes **8 files changed** (+585 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+3 -2) 📝 `CHANGELOG.md` (+5 -0) 📝 `tools/go.mod` (+9 -4) 📝 `tools/go.sum` (+80 -0) ➕ `tools/metrics_exporter/main.go` (+56 -0) ➕ `x/go.mod` (+12 -0) ➕ `x/go.sum` (+256 -0) ➕ `x/metrics/metrics.go` (+164 -0) </details> ### 📄 Description Changes: - Added `x/metrics` package which implements Prometheus collector for Asynq queues - Added `tools/metrics_exporter` binary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 06:05:20 +03:00
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#723
No description provided.