commit
60b27b0c30
|
@ -8,9 +8,12 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
intervalN := flag.Int("interval", 10, "interval")
|
var (
|
||||||
seriesN := flag.Int("series", 1, "Number of unique series to generate.")
|
intervalN = flag.Int("interval", 10, "interval")
|
||||||
clientN := flag.Int("clients", 10, "Number of clients to simulate.")
|
seriesN = flag.Int("series", 1, "Number of unique series to generate.")
|
||||||
|
clientN = flag.Int("clients", 10, "Number of clients to simulate.")
|
||||||
|
host = flag.String("host", "localhost:8086", "Target host")
|
||||||
|
)
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
// Calculate time so that the last point ends now.
|
// Calculate time so that the last point ends now.
|
||||||
|
@ -36,7 +39,7 @@ func main() {
|
||||||
}
|
}
|
||||||
buf, _ := json.Marshal(batch)
|
buf, _ := json.Marshal(batch)
|
||||||
|
|
||||||
fmt.Printf("http://localhost:8086/write POST %s\n", buf)
|
fmt.Printf("http://%s/write POST %s\n", *host, buf)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue