You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HYPERFLEET-469: Add Prometheus metrics with hyperfleet_broker_ prefix
Add MetricsRecorder that instruments publisher and subscriber with
Prometheus counters and histograms following the HyperFleet Metrics
Standard:
- hyperfleet_broker_messages_consumed_total
- hyperfleet_broker_messages_published_total
- hyperfleet_broker_errors_total (conversion, handler, publish)
- hyperfleet_broker_message_duration_seconds
MetricsRecorder is a required parameter in NewPublisher and
NewSubscriber constructors. Passing nil returns an error.
Copy file name to clipboardExpand all lines: README.md
+54-9Lines changed: 54 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ The current implementation uses [Watermill](https://github.com/ThreeDotsLabs/wat
14
14
-**Worker Pools**: Configurable parallel message processing for subscribers
15
15
-**Subscription Management**: Flexible subscription IDs for load balancing (shared subscriptions) or fanout (separate subscriptions)
16
16
-**Health Checks**: Built-in `Health()` method on `Publisher` for readiness probes (per [HyperFleet Health Endpoints standard](https://github.com/openshift-hyperfleet/architecture/blob/main/hyperfleet/standards/health-endpoints.md))
17
+
-**Prometheus Metrics**: Built-in instrumentation with `MetricsRecorder` (per [HyperFleet Metrics Standard](https://github.com/openshift-hyperfleet/architecture/blob/main/hyperfleet/standards/metrics.md))
17
18
-**Simple API**: Clean, easy-to-use interface that hides Watermill complexity
18
19
19
20
## Installation
@@ -48,17 +49,20 @@ This interface matches the HyperFleet adapter logger interface, ensuring consist
The library provides Prometheus metrics via `MetricsRecorder`. All metrics follow the [HyperFleet Metrics Standard](https://github.com/openshift-hyperfleet/architecture/blob/main/hyperfleet/standards/metrics.md) and use the `hyperfleet_broker_` prefix.
464
+
465
+
A `MetricsRecorder` is required when creating publishers and subscribers:
0 commit comments