Comments (8)
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:
- call the metadata endpoint
- 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.
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.
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.
@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.
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.
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.
Let me know if something isn't clear, I can reach out people in dev.
from eventstore_exporter.
Resolved in #14
from eventstore_exporter.
Related Issues (18)
- [Request] Add disk metrics? HOT 3
- Support ES 20.6 HOT 1
- Segfault when scraping in OpenShift HOT 1
- eventstore_tcp_received_bytes metric shows incorrect data. HOT 4
- Memory leak when unauthorized HOT 3
- How to use eventstore_exporter with config file? HOT 2
- [Request] Add subscriptions metrics HOT 3
- httpClient does not pass basic auth when gossip returns IP address HOT 4
- Stream last event number HOT 4
- memory leak in 0.11.0 and 0.12.0 ? HOT 6
- [Feature] Return detailed projection status HOT 3
- [Feature Request]: Stats for client tcp connections HOT 3
- Catchup subscription lag HOT 2
- [Feature Request]: need additional value for clone role to eventstore_cluster_member_is_master metric HOT 3
- Stats from a single node only on EVS 5.0 HOT 1
- Remove metrics for deleted projections HOT 4
- eventstore_projection_events_processed_after_restart_total not giving any metrics HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eventstore_exporter.