Skip to content

Commit

Permalink
loki: add back new /loki/api/v1/push endpoint
Browse files Browse the repository at this point in the history
/loki/api/v1/push was added in grafana#1010 but was temporarily reverted. grafana#1022
reintroduced changes from grafana#1010 but inadvertently did not reintroduce
the new push endpoint.
  • Loading branch information
rfratto committed Sep 23, 2019
1 parent 7794d15 commit 5af8e44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/loki/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ func (t *Loki) initDistributor() (err error) {
}

t.server.HTTP.Path("/ready").Handler(http.HandlerFunc(t.distributor.ReadinessHandler))
t.server.HTTP.Handle("/loki/api/v1/push", middleware.Merge(
t.httpAuthMiddleware,
).Wrap(http.HandlerFunc(t.distributor.PushHandler)))
t.server.HTTP.Handle("/api/prom/push", middleware.Merge(
t.httpAuthMiddleware,
).Wrap(http.HandlerFunc(t.distributor.PushHandler)))
Expand Down

0 comments on commit 5af8e44

Please sign in to comment.