janusgraph icon indicating copy to clipboard operation
janusgraph copied to clipboard

Unable to create csv file in CSV File Reporter while configuring Janusgaph Metrics

Open shubham190892 opened this issue 8 years ago • 1 comments

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.

shubham190892 avatar Mar 26 '18 11:03 shubham190892

Issue has been resolved via PR #964

chupman avatar Feb 01 '19 23:02 chupman