mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/influxutils: return response compatible with InfluxDB 1.8.4
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1124
This commit is contained in:
parent
b7c9f3676e
commit
c4d0c20de2
1 changed files with 1 additions and 1 deletions
|
@ -25,5 +25,5 @@ func WriteDatabaseNames(w http.ResponseWriter) {
|
|||
for i := range dbNames {
|
||||
dbs[i] = fmt.Sprintf(`[%q]`, dbNames[i])
|
||||
}
|
||||
fmt.Fprintf(w, `{"results":[{"name":"databases","columns":["name"],"series":[{"values":[%s]}]}]}`, strings.Join(dbs, ","))
|
||||
fmt.Fprintf(w, `{"results":[{"statement_id":0,"series":[{"name":"databases","columns":["name"],"values":[%s]}]}]}`, strings.Join(dbs, ","))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue