mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-30 20:43:55 -06:00
added docker metrics helper diagnostics for prom dir creation
This commit is contained in:
parent
1172b40c93
commit
b60c3391e6
@ -186,6 +186,12 @@ public class DockerMetricsHelper {
|
||||
|
||||
File prometheusDir = new File(userHome, ".nosqlbench/prometheus");
|
||||
if(!prometheusDir.mkdir()){
|
||||
if(prometheusDir.canWrite()){
|
||||
System.out.println("no write access");
|
||||
}
|
||||
if(prometheusDir.canRead()){
|
||||
System.out.println("no read access");
|
||||
}
|
||||
System.out.println("Could not create directory "+ userHome + "./nosqlbench/prometheus");
|
||||
System.out.println("fix directory permissions to run --docker-metrics");
|
||||
System.exit(1);
|
||||
|
Loading…
Reference in New Issue
Block a user