marcinbudny / eventstore_exporter

EventStoreDB (https://eventstore.com/eventstoredb/) metrics Prometheus exporter.
MIT License
52 stars 10 forks source link

Stream last event number #21

Closed rodion-k closed 2 years ago

rodion-k commented 2 years ago

Is there a metric with the number of the last event of a particular stream?

marcinbudny commented 2 years ago

Hey, there is no such metric at the moment. Is the intention here to configure one or more stream names, for which the exporter would get the last number of event?

I assume this is for measuring the subscription gap?

rodion-k commented 2 years ago

Hi @marcinbudny, thanks for the reply. Yes, I want to configure multiple stream names. I have catch-up subscriptions for my read models that send their checkpoints to grafana, and I want to measure how far they are from the end of the stream.

marcinbudny commented 2 years ago

That makes sense of course. I will put that on my todo list. I also accept contributions if you're interested.

In the meantime, you can export similar metric from the application itself.

marcinbudny commented 2 years ago

Added in v0.11.0