File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,6 @@ func (t *Cortex) initDistributor(cfg *Config) (err error) {
168
168
return
169
169
}
170
170
171
- t .server .HTTP .HandleFunc ("/user_stats" , t .distributor .UserStatsHandler )
172
171
t .server .HTTP .HandleFunc ("/all_user_stats" , t .distributor .AllUserStatsHandler )
173
172
t .server .HTTP .Handle ("/api/prom/push" , t .httpAuthMiddleware .Wrap (http .HandlerFunc (t .distributor .PushHandler )))
174
173
return
@@ -209,6 +208,7 @@ func (t *Cortex) initQuerier(cfg *Config) (err error) {
209
208
subrouter .Path ("/read" ).Handler (t .httpAuthMiddleware .Wrap (querier .RemoteReadHandler (queryable )))
210
209
subrouter .Path ("/validate_expr" ).Handler (t .httpAuthMiddleware .Wrap (http .HandlerFunc (t .distributor .ValidateExprHandler )))
211
210
subrouter .Path ("/chunks" ).Handler (t .httpAuthMiddleware .Wrap (querier .ChunksHandler (queryable )))
211
+ subrouter .Path ("/user_stats" ).Handler (middleware .AuthenticateUser .Wrap (http .HandlerFunc (t .distributor .UserStatsHandler )))
212
212
return
213
213
}
214
214
You can’t perform that action at this time.
0 commit comments