influxdata / influxdata/influxdata-docker

Chronograf not loading /etc/default/chronograf

Open
#321 0 comments 2 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.