mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 00:23:18 +00:00
create output directory before backfilling
Signed-off-by: yeya24 <yb532204897@gmail.com>
This commit is contained in:
parent
70c69aaa6c
commit
cedd2dbec9
@ -621,5 +621,9 @@ func backfillOpenMetrics(path string, outputDir string) (err error) {
|
||||
return err
|
||||
}
|
||||
defer inputFile.Close()
|
||||
|
||||
if err := os.MkdirAll(outputDir, 0777); err != nil {
|
||||
return errors.Wrap(err, "create output dir")
|
||||
}
|
||||
return backfill(5000, inputFile.Bytes(), outputDir)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user