Skip to content

Add replicaset name to metrics #70

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KaymeKaydex
Copy link
Collaborator

@KaymeKaydex KaymeKaydex commented Apr 10, 2025

What has been done? Why? What problem is being solved?

No we support replicaset name and can watch on replicaset metrics

I didn't forget about (remove if it is not applicable):

Related issues:

@KaymeKaydex KaymeKaydex force-pushed the metrics/replicaset-name branch from c1a57cb to b603439 Compare April 15, 2025 07:06
@@ -281,7 +281,7 @@ func (r *Router) Call(ctx context.Context, bucketID uint64, mode CallMode,

for {
if spent := time.Since(requestStartTime); spent > timeout {
r.metrics().RequestDuration(spent, fnc, false, false)
r.metrics().RequestDuration(spent, fnc, "", false, false)
Copy link
Collaborator

Choose a reason for hiding this comment

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

We discussed privately that every request to any replicaset should generate a metric. So, I suggest these fixes to the current PR: #72

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants