Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Add show plan endpoint #961

Merged
merged 6 commits into from
Jul 25, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
review comment.
saheemg committed Jul 12, 2018
commit ad1eb52c8f643c255e509d94c6f229806b358e5d
6 changes: 1 addition & 5 deletions api/graphite.go
Original file line number Diff line number Diff line change
@@ -1240,11 +1240,7 @@ func (s *Server) showPlan(ctx *middleware.Context, request models.GraphiteRender

stable := request.Process == "stable"
mdp := request.MaxDataPoints
if request.NoProxy {
// if this request is coming from graphite, we should not do runtime consolidation
// as graphite needs high-res data to perform its processing.
mdp = 0
}

plan, err := expr.NewPlan(exprs, fromUnix, toUnix, mdp, stable, nil)
if err != nil {
response.Write(ctx, response.NewError(http.StatusBadRequest, err.Error()))