Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overriding /opt/statsd will cause statsd daemon to fail. #56

Open
gdippolito opened this issue Jun 3, 2016 · 0 comments
Open

Overriding /opt/statsd will cause statsd daemon to fail. #56

gdippolito opened this issue Jun 3, 2016 · 0 comments

Comments

@gdippolito
Copy link

In the Readme file is suggested to mount a volume to the /opt/statsd directory to override some options.

This is achieve via passing the -v option on the docker run with -v /path/to/statsd:/opt/statsd\.

However this will cause the complete overriding of the statsd directory and will cause the following issue:

module.js:340
    throw err;
          ^
Error: Cannot find module '/opt/statsd/stats.js'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3

The right option to do is to mount specific configuration file overriding single files for example:
-v /path/to/statsd/config.js:/opt/statsd/config.js.

Cactusbone pushed a commit to F4-Group/docker-graphite-statsd that referenced this issue Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant