Skip to content

feat(observability): add Prometheus metrics with OpenTelemetry#3

Merged
faranjit merged 1 commit intomainfrom
feature/metrics
Jan 6, 2026
Merged

feat(observability): add Prometheus metrics with OpenTelemetry#3
faranjit merged 1 commit intomainfrom
feature/metrics

Conversation

@faranjit
Copy link
Copy Markdown
Owner

@faranjit faranjit commented Jan 6, 2026

  • Implement InitMetrics() with Prometheus exporter
  • Add shutdown function for graceful cleanup
  • Register queue depth gauge in controller
  • Add dedicated metrics server on :6162 for worker
  • Add comprehensive tests including OTel→Prometheus pipeline test

- Implement InitMetrics() with Prometheus exporter
- Add shutdown function for graceful cleanup
- Register queue depth gauge in controller
- Add dedicated metrics server on :6162 for worker
- Add comprehensive tests including OTel→Prometheus pipeline test
@faranjit faranjit merged commit fc9b012 into main Jan 6, 2026
4 checks passed
@faranjit faranjit deleted the feature/metrics branch January 6, 2026 21:15
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 6, 2026

Codecov Report

❌ Patch coverage is 49.43820% with 45 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.78%. Comparing base (e335338) to head (0293030).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
cmd/controller/main.go 0.00% 20 Missing ⚠️
cmd/worker/main.go 0.00% 13 Missing ⚠️
internal/store/postgres/queue.go 58.82% 7 Missing ⚠️
internal/controller/server.go 0.00% 3 Missing ⚠️
internal/observability/metrics.go 77.77% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #3      +/-   ##
==========================================
- Coverage   66.77%   65.78%   -1.00%     
==========================================
  Files          32       33       +1     
  Lines        1478     1555      +77     
==========================================
+ Hits          987     1023      +36     
- Misses        426      466      +40     
- Partials       65       66       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant