record datastore metrics after successful run
This commit is contained in:
parent
0341944350
commit
602d2b8ad5
@ -320,6 +320,21 @@ var importBenchCmd = &cli.Command{
|
||||
|
||||
pprof.StopCPUProfile()
|
||||
|
||||
if true {
|
||||
resp, err := http.Get("http://localhost:6060/debug/metrics/prometheus")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
metricsfi, err := os.Create("import-bench.metrics")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
io.Copy(metricsfi, resp.Body)
|
||||
metricsfi.Close()
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user