mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +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
acf2a82d3c
commit
37323c57c9
1 changed files with 1 additions and 1 deletions
|
@ -25,5 +25,5 @@ func WriteDatabaseNames(w http.ResponseWriter) {
|
||||||
for i := range dbNames {
|
for i := range dbNames {
|
||||||
dbs[i] = fmt.Sprintf(`[%q]`, dbNames[i])
|
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