mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-01-10 07:53:08 -06:00
docker-metrics dir create check
This commit is contained in:
parent
a89a377ccd
commit
1172b40c93
@ -185,7 +185,11 @@ public class DockerMetricsHelper {
|
||||
datasource = datasource.replace("!!!GRAPHITE_IP!!!", ip);
|
||||
|
||||
File prometheusDir = new File(userHome, ".nosqlbench/prometheus");
|
||||
prometheusDir.mkdir();
|
||||
if(!prometheusDir.mkdir()){
|
||||
System.out.println("Could not create directory "+ userHome + "./nosqlbench/prometheus");
|
||||
System.out.println("fix directory permissions to run --docker-metrics");
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
new File(userHome, ".nosqlbench/prometheus-conf").mkdir();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user