[PR #203] [MERGED] Prometheus integration #608

Closed
opened 2026-03-07 22:16:24 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hibiken/asynqmon/pull/203
Author: @hibiken
Created: 12/19/2021
Status: Merged
Merged: 12/19/2021
Merged by: @hibiken

Base: masterHead: feature/metrics


📝 Commits (10+)

  • 6a2574a Add option to export metrics from asynqmon
  • e877553 Add option to specify prometheus server address
  • c9fcd9c Show metrics icon in sidebar if prometheus-addr is specified
  • 0279bd2 (ui): Add MetricsView
  • d609053 Add redux actions/reducer for metrics
  • d7ac077 (ui): Add QueueSizeMetricsChart component
  • 3483b0f WIP: (api): Update metrics handler to take options
  • ea4e111 (api): Allow duration and end_time options for metrics endpoint
  • ce28af6 WIP: (ui): Add endtime, duration selector
  • 3a90416 (ui): Update UI to use the user selected duration

📊 Changes

30 files changed (+2113 additions, -105 deletions)

View changed files

📝 README.md (+29 -11)
📝 cmd/asynqmon/main.go (+44 -21)
📝 go.mod (+9 -3)
📝 go.sum (+110 -39)
📝 handler.go (+14 -4)
metrics_handler.go (+230 -0)
📝 static.go (+9 -6)
ui/build/static/js/2.8854b145.chunk.js (+3 -0)
ui/build/static/js/2.8854b145.chunk.js.LICENSE.txt (+253 -0)
ui/build/static/js/2.8854b145.chunk.js.map (+1 -0)
ui/build/static/js/main.aac2a828.chunk.js (+2 -0)
ui/build/static/js/main.aac2a828.chunk.js.map (+1 -0)
📝 ui/public/index.html (+1 -0)
📝 ui/src/App.tsx (+12 -0)
ui/src/actions/metricsActions.ts (+48 -0)
📝 ui/src/api.ts (+64 -0)
📝 ui/src/components/DailyStatsChart.tsx (+6 -2)
ui/src/components/MetricsFetchControls.tsx (+736 -0)
📝 ui/src/components/ProcessedTasksChart.tsx (+2 -2)
ui/src/components/QueueMetricsChart.tsx (+108 -0)

...and 10 more files

📄 Description

Changes:

  • --enable-metrics-exporter flag is added to export Prometheus metrics from Web UI server
  • --promethues-addr flag is added to connect to Prometheus server to fetch time-series metrics data and display in the Web UI

🔄 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/asynqmon/pull/203 **Author:** [@hibiken](https://github.com/hibiken) **Created:** 12/19/2021 **Status:** ✅ Merged **Merged:** 12/19/2021 **Merged by:** [@hibiken](https://github.com/hibiken) **Base:** `master` ← **Head:** `feature/metrics` --- ### 📝 Commits (10+) - [`6a2574a`](https://github.com/hibiken/asynqmon/commit/6a2574ad5f16278b87738f95f09ec80e263ad614) Add option to export metrics from asynqmon - [`e877553`](https://github.com/hibiken/asynqmon/commit/e8775539ae04fb66a918872a7b6585311a2e8d9f) Add option to specify prometheus server address - [`c9fcd9c`](https://github.com/hibiken/asynqmon/commit/c9fcd9c7aeb0a2ef2c1b5ee7149c409a9b6142ca) Show metrics icon in sidebar if prometheus-addr is specified - [`0279bd2`](https://github.com/hibiken/asynqmon/commit/0279bd29cd6683d4f93f031ed1804c0ac5b8c337) (ui): Add MetricsView - [`d609053`](https://github.com/hibiken/asynqmon/commit/d60905334f39d6373daee0b0cc10a359958106c2) Add redux actions/reducer for metrics - [`d7ac077`](https://github.com/hibiken/asynqmon/commit/d7ac0770832b566ec63ffff430eeb5a299cc6f26) (ui): Add QueueSizeMetricsChart component - [`3483b0f`](https://github.com/hibiken/asynqmon/commit/3483b0ffaea3e1a2b4ee6e4959f7a2190136fef5) WIP: (api): Update metrics handler to take options - [`ea4e111`](https://github.com/hibiken/asynqmon/commit/ea4e111ecc658485ff04095ccdac2d06072c44d2) (api): Allow duration and end_time options for metrics endpoint - [`ce28af6`](https://github.com/hibiken/asynqmon/commit/ce28af6a69f02abdf036ecb2a6dab1c861355464) WIP: (ui): Add endtime, duration selector - [`3a90416`](https://github.com/hibiken/asynqmon/commit/3a90416b523d307d83e516b8ded67f286531dfc7) (ui): Update UI to use the user selected duration ### 📊 Changes **30 files changed** (+2113 additions, -105 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+29 -11) 📝 `cmd/asynqmon/main.go` (+44 -21) 📝 `go.mod` (+9 -3) 📝 `go.sum` (+110 -39) 📝 `handler.go` (+14 -4) ➕ `metrics_handler.go` (+230 -0) 📝 `static.go` (+9 -6) ➕ `ui/build/static/js/2.8854b145.chunk.js` (+3 -0) ➕ `ui/build/static/js/2.8854b145.chunk.js.LICENSE.txt` (+253 -0) ➕ `ui/build/static/js/2.8854b145.chunk.js.map` (+1 -0) ➕ `ui/build/static/js/main.aac2a828.chunk.js` (+2 -0) ➕ `ui/build/static/js/main.aac2a828.chunk.js.map` (+1 -0) 📝 `ui/public/index.html` (+1 -0) 📝 `ui/src/App.tsx` (+12 -0) ➕ `ui/src/actions/metricsActions.ts` (+48 -0) 📝 `ui/src/api.ts` (+64 -0) 📝 `ui/src/components/DailyStatsChart.tsx` (+6 -2) ➕ `ui/src/components/MetricsFetchControls.tsx` (+736 -0) 📝 `ui/src/components/ProcessedTasksChart.tsx` (+2 -2) ➕ `ui/src/components/QueueMetricsChart.tsx` (+108 -0) _...and 10 more files_ </details> ### 📄 Description Changes: - `--enable-metrics-exporter` flag is added to export Prometheus metrics from Web UI server - `--promethues-addr` flag is added to connect to Prometheus server to fetch time-series metrics data and display in the Web UI --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-07 22:16:24 +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/asynqmon#608
No description provided.