mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Merge pull request #8315 from yeya24/create-dir
Create output directory before backfilling
This commit is contained in:
commit
ffb3ef6765
|
@ -621,5 +621,9 @@ func backfillOpenMetrics(path string, outputDir string) (err error) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
defer inputFile.Close()
|
defer inputFile.Close()
|
||||||
|
|
||||||
|
if err := os.MkdirAll(outputDir, 0777); err != nil {
|
||||||
|
return errors.Wrap(err, "create output dir")
|
||||||
|
}
|
||||||
return backfill(5000, inputFile.Bytes(), outputDir)
|
return backfill(5000, inputFile.Bytes(), outputDir)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue