OpenTelemetry Metrics for outbox messages #221
-
Hello. Are there any default metrics that we can use/export? Would be nice to have a live feed of outbox messages or a counter of messages consumed by topics that we could visualize. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
When you say "outbox" do you mean produced messages in general or do you refer to the outbox pattern? Regardless, the consumers expose a very minimal StatusInfo that contains the count of consumed messages (per consumer, not per topic). Furthermore, assuming that you are talking about Kafka, you also have the built-in statistics that can be consumed via the callback (they need to be enabled in the consumer configuration). Finally, if you are talking about the outbox pattern, you can read some basic metrics like queue length and max age from the IOutboxReader. Silverback doesn't export these metrics but they are available for you to be collected and published however you want. |
Beta Was this translation helpful? Give feedback.
When you say "outbox" do you mean produced messages in general or do you refer to the outbox pattern?
Regardless, the consumers expose a very minimal StatusInfo that contains the count of consumed messages (per consumer, not per topic).
Furthermore, assuming that you are talking about Kafka, you also have the built-in statistics that can be consumed via the callback (they need to be enabled in the consumer configuration).
Finally, if you are talking about the outbox pattern, you can read some basic metrics like queue length and max age from the IOutboxReader.
Silverback doesn't export these metrics but they are available for you to be collected and published however you want.