Commit e75fbe34 authored by jingbo.wang's avatar jingbo.wang

删除指定node的sql

parent 26dc0524
package report_form
import (
"fmt"
"testing"
)
func sql(ip string) string {
tabs := []string{
"machine_info",
"apdex",
"trace_info",
"health_info",
}
rtn := ""
for _, tab := range tabs {
rtn += fmt.Sprintf(`delete from %s where host = '%s';`, tab, ip)
rtn += fmt.Sprintf(`drop SERIES from %s where host='%s';`, tab, ip)
}
return rtn
}
func TestAAA(t *testing.T) {
ips := []string{
"172.16.8.206", //运
}
for _, ip := range ips {
fmt.Println(sql(ip))
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment