docker-graphite-statsd
docker-graphite-statsd copied to clipboard
[BUG]: Error: Cannot find module '/opt/statsd/stats.js'
Please open bug only for Docker component here, if you want to do so for Graphite, please use graphite-web repo
Describe the bug
When executing docker compose up, graphite does not allow querying metrcs.
With docker compose logs the below error is displayed during startup:
✔ Container graphite Started 10.2s
graphite | Started runsvdir, PID is 46
graphite | wait for processes to start....
graphite | /usr/sbin/crond 4.5 dillon's cron daemon, started with loglevel notice
graphite | node:internal/modules/cjs/loader:1031
graphite | throw err;
graphite | ^
graphite |
graphite | Error: Cannot find module '/opt/statsd/stats.js'
graphite | at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
graphite | at Function.Module._load (node:internal/modules/cjs/loader:873:27)
graphite | at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
graphite | at node:internal/main/run_main_module:22:47 {
graphite | code: 'MODULE_NOT_FOUND',
graphite | requireStack: []
graphite | }
graphite | Starting carbon-cache (instance a)
To Reproduce
docker compose pull the latest version, and then up -
Expected behavior
Make it so that Grafana can query the data.
Environment (please complete the following information):
- OS flavor: [e.g. Ubuntu, CentOS, Debian, Windows 10, MacOS etc] Ubuntu 20.04.6 LTS, Docker Engine - Community Version: 25.0.3
- Image version [e.g. 1.1.5-7, 1.1.6-1, etc]
- Custom volumes mounted [e.g. None, /opt/graphite/conf, /opt/graphite/storage etc]: volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /data/graphite/configs:/opt/graphite/conf
- /data/graphite/data:/opt/graphite/storage
- /data/graphite/statsd:/opt/statsd
Additional context Add any other context about the problem here.
@blade1989 : you should mount /opt/statsd/config and not whole /opt/statsd