app/vminsert: emulate influx/query request, which is required for TSBS benchmark

This commit is contained in:
Aliaksandr Valialkin 2019-06-03 18:37:59 +03:00
parent 8ad0fb5689
commit db21d46417

View file

@ -116,7 +116,8 @@ func requestHandler(w http.ResponseWriter, r *http.Request) bool {
w.WriteHeader(http.StatusNoContent)
return true
case "influx/query":
// Emulate fake response for influx query
// Emulate fake response for influx query.
// This is required for TSBS benchmark.
influxQueryRequests.Inc()
fmt.Fprintf(w, `{"results":[{"series":[{"values":[]}]}]}`)
return true