Skip to content

Add Prometheus metrics and improve eventsManager observability#26

Open
danielgranhao wants to merge 3 commits intomainfrom
daniel-various-improvements
Open

Add Prometheus metrics and improve eventsManager observability#26
danielgranhao wants to merge 3 commits intomainfrom
daniel-various-improvements

Conversation

@danielgranhao
Copy link
Contributor

@danielgranhao danielgranhao commented Feb 27, 2026

Summary

Fix test assertions for exclusive lock and schema version

  • Update signSetLock calls to include the exclusive parameter
  • Add SchemaVersion field to expected StoredRecord values

Add Prometheus metrics infrastructure and gRPC interceptors

  • Expose /metrics HTTP endpoint on configurable port (default 9091)
  • Register gRPC server metrics with unary + stream interceptors (handling time histograms)
  • Define custom gauges/counters/histograms for sync observability
  • Configure Fly.io metrics scraping
  • Upgrade Go toolchain and bump dependencies

Improve eventsManager observability and resilience

  • Instrument subscriptions, notifications, and msgChan delay with Prometheus metrics
  • Use non-blocking sends to avoid stalling on full subscriber buffers
  • Add periodic (1min) stats logging in eventsManager
  • Improve log messages with subscription counts
  • Add metrics integration tests

Update signSetLock calls to include the exclusive parameter and add
SchemaVersion field to expected StoredRecord values.
- Add metrics HTTP server on configurable port (default 9091)
- Register gRPC server metrics (unary + stream interceptors)
- Define custom gauges/counters/histograms for sync observability
- Update Go toolchain and bump dependencies
- Configure Fly.io metrics endpoint
- Instrument subscriptions, notifications, and msgChan delay with
  Prometheus metrics
- Use non-blocking sends to avoid stalling on full subscriber buffers
- Add periodic stats logging (1-minute ticker)
- Improve log messages with subscription counts
- Add metrics integration tests
@danielgranhao danielgranhao force-pushed the daniel-various-improvements branch from 0018399 to eec5ec2 Compare February 27, 2026 12:31
@danielgranhao danielgranhao marked this pull request as ready for review February 27, 2026 12:36
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