grafana/carbon-relay-ng

Better handling when aggregationFile isn't defined

indygriffiths opened this issue · 1 comments

If the new aggregationFile option isn't defined, carbon-relay-ng fails to start with a cryptic error message:

2021-07-01 22:49:45.813 [ERROR] NewGrafanaNetConfig: could not read aggregationFile "": read .: is a directory
2021-07-01 22:49:45.815 [ERROR] error adding route 'grafanaNet'

Ideally if the option isn't defined it could explain what the error is and link to the docs within the repo, or have it create a default storage-aggregation.conf file automatically.

For context, our carbon-relay-ng package was upgraded automatically which broke our metric pipeline as this option wasn't defined (aware it shouldn't have jumped up a major version so that's on us). I've also raised a post on the Grafana fourm as the docs for setting up carbon-relay-ng when viewing a Grafana Cloud Graphite instance are now out-of-date if you're using the latest version.

you're absolutely right.

Sorry for the confusion, this should all be squared away by end of next week.