Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

fix/add replicator counters #36

Merged
merged 2 commits into from
Jan 24, 2017
Merged

fix/add replicator counters #36

merged 2 commits into from
Jan 24, 2017

Conversation

datoug
Copy link
Contributor

@datoug datoug commented Jan 24, 2017

add some new counters in replicator, also fix existing gauge counters

@datoug datoug requested a review from aravindvs January 24, 2017 17:53
@@ -902,8 +902,10 @@ const (

// -- Replicator metrics -- //

// ReplicatorWsFailure indicates websocket failure
ReplicatorWsFailure
// ReplicatorWsFailure indicates failure when creating in stream
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix comment

ReplicatorWsFailure
// ReplicatorWsFailure indicates failure when creating in stream
ReplicatorCreateInStreamFailure
// ReplicatorWsFailure indicates failure when creating out stream
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix comment

ReplicatorReconcileDestExtentFail: {Counter, "replicator.reconcile.destextent.fail"},
ReplicatorReconcileDestExtentFoundMissing: {Counter, "replicator.reconcile.destextent.foundmissing"},
ReplicatorReconcileDestExtentInconsistentStatus: {Counter, "replicator.reconcile.destextent.inconsistentstatus"},
ReplicatorReconcileDestRun: {Gauge, "replicator.reconcile.dest.run"},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you want to also update the callers to use UpdateGauge() instead of IncCounter() now ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

caller is already using UpdateGauge, so this is a bug fix.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 54.786% when pulling ca1e844 on replicator_counter into 8bbdbd7 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 54.603% when pulling ca1e844 on replicator_counter into 8bbdbd7 on master.

@datoug datoug merged commit 9bf39e1 into master Jan 24, 2017
@datoug datoug deleted the replicator_counter branch January 24, 2017 18:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants