-
Notifications
You must be signed in to change notification settings - Fork 836
Distributor: /all_user_stats now show API and Rule Ingest Rate correctly #2457
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
Changes from 2 commits
f46981b
be5079c
cd50937
ae19eb6
c3ba3c2
0c7a364
12612d9
03c01b1
985c089
c49d6a1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,14 +17,14 @@ func Handler(cfg distributor.Config, push func(context.Context, *client.WriteReq | |
| return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { | ||
| compressionType := util.CompressionTypeFor(r.Header.Get("X-Prometheus-Remote-Write-Version")) | ||
| var req client.PreallocWriteRequest | ||
| req.Source = client.API | ||
| _, err := util.ParseProtoReader(r.Context(), r.Body, int(r.ContentLength), cfg.MaxRecvMsgSize, &req, compressionType) | ||
| logger := util.WithContext(r.Context(), util.Logger) | ||
| if err != nil { | ||
| level.Error(logger).Log("err", err.Error()) | ||
| http.Error(w, err.Error(), http.StatusBadRequest) | ||
| return | ||
| } | ||
| req.Source = client.API | ||
|
||
|
|
||
| if _, err := push(r.Context(), &req.WriteRequest); err != nil { | ||
| resp, ok := httpgrpc.HTTPResponseFromError(err) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.