Vector: Allow `--config` to be optional and let vector search for the config

Created on 30 Aug 2019  路  3Comments  路  Source: timberio/vector

In the case of docker, I want to copy a config into /etc/vector/vector.toml and not have to supply the --config argument. This should allow seamless usage with automated systems.

cli config good first issue enhancement

Most helpful comment

@binarylogic In the simple case of docker, I would like to use a volume link to pass the config in and just "run" the container without any specific commands or customizing the container.

Vector, in general, should just search the default paths for a config before failing. I think this provides a much better UX and we already have default config directories.

All 3 comments

Can you explain why this is needed in the case of docker? Is there not a way to provide command-line arguments?

@binarylogic In the simple case of docker, I would like to use a volume link to pass the config in and just "run" the container without any specific commands or customizing the container.

Vector, in general, should just search the default paths for a config before failing. I think this provides a much better UX and we already have default config directories.

@LucioFranco This a good enhancement of little work and noticeable benefit.

This case also happens in Kubernetes where the location of configuration occurs in two places. With this only one occurrence will remain, and as a bonus no arguments will need to be passed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

a-rodin picture a-rodin  路  3Comments

raghu999 picture raghu999  路  3Comments

lewisthompson picture lewisthompson  路  3Comments

binarylogic picture binarylogic  路  3Comments

valyala picture valyala  路  3Comments