-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a flag to ignore replications updated_on #23
base: master
Are you sure you want to change the base?
Conversation
I didn't add any tests (yet). Let me know what you think. |
Tests would be nice, for both cases with enabled and disabled Travis CI already complains about something, but I haven't looked into the build log, yet. ... and thanks for the hint about the CouchDB 2.1.x new |
The test failure looks like an obvious failure to even build the tests (and update the test code to match the updated Does the |
Good question - and I actually have been thinking about it without having a much better idea. I cannot predict whether that flag will be kept as is, because I have no idea whether similar flags will be necessary in the future. When there would be more flags like the replsupdate, I would try to have an option like For the time being I would suggest something like |
Sorry, got pulled off into other things. Will get to this tomorrow. I like
|
let's got for it, then 👍
a personal note about that aspect: I always keep in mind that the exporter needs to make several http requests to the CouchDB and I'm unsure where to make a cut. So I tend to keep the amount of requests minimal, but maybe I'm not always making the best decision. Feedback like yours from another real life user is really helpful in that regard. |
@nevans did you already have a chance to rename the flag? |
I'm running servers which have tens of thousands of unique replication documents, hundreds of which are running at any one point in time (using 2.1's scheduler). It might occasionally be useful to know the last
updated_on
, but I can get that data just as easily via CouchDB's/_scheduler/docs
API: http://docs.couchdb.org/en/2.1.0/api/server/common.html#scheduler-docs, and don't need it to be tracked (and taking disk space) by prometheus. So I added a-couchdb.replsupdate=true
boolean flag, which can be used to opt-out.