influxdata / influxdata/influxdata-docker
Chronograf not loading /etc/default/chronograf
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 364
- Forks
- 255
- Avg merge
- 3h 18m
- Merged PRs (30d)
- 7
Description
I tried configuring the Chronograf container by moving the INFLUXDB_URL & KAPACITOR_URL environment variable to the default file /etc/default/chronograf as mentioned in the docs https://docs.influxdata.com/chronograf/v1.7/administration/configuration/ .
Unfortunately this does not work, since the entrypoint.sh runs chronograf directly without going through the service manager which would usually take care of loading this file before starting the service.
Since running the executable directly is considered best practice for docker instances, why not load this file manually if it exists? This would make the docker image conform to the documentation.
Something like:
ENV_FILE=/etc/default/chronograf
echo "Loading ${ENV_FILE}"
export $(grep -v '^#' "${ENV_FILE}" | xargs -d '\n')
(This is a result from a google search and might noch be the best solution, but it should work as an example)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Docker image's entrypoint.sh and compare its direct Chronograf invocation with the configuration documented at /etc/default/chronograf. Verify how INFLUXDB_URL and KAPACITOR_URL are handled when that file exists, and consider the issue complete when the container loads those values consistently with the documentation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, shell
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100