Git Product home page Git Product logo

Comments (8)

marcinbudny avatar marcinbudny commented on July 17, 2024

Hi Ben,

Thank you for the suggestion. I'm not very familiar with persistent subscriptions, because I don't use them myself. If I understand this correctly, for each subscription group the exporter would have to:

  1. call the metadata endpoint
  2. read last event from the stream

I'm a bit concerned about the performance of this operation when there is a lot of groups. Scrape needs to complete within a few seconds, preferably under a second.
So maybe there should be an opt-in setting for the exporter to scrape such metric. What do you think?

from eventstore_exporter.

ben-leah-cko avatar ben-leah-cko commented on July 17, 2024

Hey Marc,

Yeah, I completely understand the performance angle. Possible option

Potentially make the opt-in on a per subscription (group) basis. As the number of parked messages (it's essentially a dead letter queue), is generally quite slow-changing, you could config the scrape to happen at longer intervals?

from eventstore_exporter.

marcinbudny avatar marcinbudny commented on July 17, 2024

The stats are downloaded from ES when the scrape is triggered by Prometheus. This is how exporters are supposed to work, so cadence will be the same for all the data.
I'm not sure about per subscription group configuration, it may be a bit too much. I could try with simple on/off switch for this and then fix this later if needed.
That being said, I'm a bit overwhelmed by work right now, so I won't be able to start this for few next weeks. If you need this sooner and you would like to contribute a PR, please feel free to do so.

from eventstore_exporter.

alexeyzimarev avatar alexeyzimarev commented on July 17, 2024

@marcinbudny that's not exactly right. The persistent subscriptions HTTP API returns everything you need to report as a metric. There is a single endpoint to list all the persistent subscriptions: https://ecstatic-borg-bc8046.netlify.app/server/5.0/http-api/persistent-subscriptions.html#acknowledgements

from eventstore_exporter.

alexeyzimarev avatar alexeyzimarev commented on July 17, 2024

The endpoint also returns the URI for parked messages, I haven't explored it myself, but the Admin UI is showing the number of parked and failed messages, so it should not be hard.

from eventstore_exporter.

marcinbudny avatar marcinbudny commented on July 17, 2024

Hi Alexey. I'm already using /subscriptions to get some information about persistent subscriptions, but number of parked messages requires more advanced approach. I need to look into this further.

from eventstore_exporter.

alexeyzimarev avatar alexeyzimarev commented on July 17, 2024

Let me know if something isn't clear, I can reach out people in dev.

from eventstore_exporter.

marcinbudny avatar marcinbudny commented on July 17, 2024

Resolved in #14

from eventstore_exporter.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.