Unable to create csv file in CSV File Reporter while configuring Janusgaph Metrics
I was trying to configure the csv file reporter in the janusgraph metrics But there was no file getting created and No Exceptions were visible in the logs. I debugged the stats code I found the below issue.
There was discrepancy between property name in documentation and codebase. Document page suggest the metrics.csv.dir property while codebase searching for metrics.csv.directory.
In the Documentation (metrics-csv-doc). metrics.enabled = true metrics.csv.interval = 60000 metrics.csv.dir = foo/bar
In codebase the configuration call searching for the property metrics.csv.directory. The second parameter in the below constructor.
public static final ConfigOption<String> METRICS_CSV_DIR = new ConfigOption<String>(METRICS_CSV_NS, "directory",
"Metrics CSV output directory",
ConfigOption.Type.MASKABLE, String.class);
Please update the doc to avoid problems for the new upcoming users.
Issue has been resolved via PR #964