-
Notifications
You must be signed in to change notification settings - Fork 812
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
Distributors rings status #4151
Distributors rings status #4151
Conversation
@pracucci Finally I've been able to do it 😄 , hopefully, I haven't done something totally weird that is not what we want |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job, LGTM! (modulo a couple of nits)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks (let's please fix prometheus.DefaultRegisterer
that @pracucci pointed out).
pkg/distributor/distributor.go
Outdated
w.WriteHeader(http.StatusOK) | ||
_, err := w.Write([]byte(unshardedPage)) | ||
if err != nil { | ||
level.Error(d.log).Log("msg", "unable to serve status page", "err", err) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this worth moving to WriteHTMLResponse
in pkg/util/http.go
?
Also there is no need to log the error while writing response. It's likely that client has disconnected, at that point, we cannot do anything about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it makes sense so I've created that method and now we're using it in rules and distributor :)
Now we're able to see the ring status for the distributor when the ingestion-rate-limit-strategy setting is set to global Signed-off-by: Mario de Frutos <[email protected]>
Signed-off-by: Mario de Frutos <[email protected]>
Signed-off-by: Mario de Frutos <[email protected]>
Signed-off-by: Mario de Frutos <[email protected]>
Signed-off-by: Mario de Frutos <[email protected]>
10f894a
to
90fd9b3
Compare
All changes tackled :) |
Thanks for addressing our feedback! |
What this PR does:
Now we're able to see the ring status for the distributor when the ingestion-rate-limit-strategy
the setting is set to global
Which issue(s) this PR fixes:
Fixes #3656
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]