Include file base path for configuration #3503
-
A number of CLI configuration directives allows to include external files with data into the configuration. Example: I have achieved the desired result with absolute file paths in my configuration, such as
But absolute paths are not really desirable for deployment and operation. I would like to specify a relative path, but so far I failed. I placed that file next to the Jaeger binary (which is in separate directory in my setup), next to the config yaml file (which also has a separate directory) and in their common base directory. But I can't find the correct way to reference the file then (just |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
If you're running docker image of Jaeger then you can mount relative paths as absolute within the container, so I don't think it's an issue and is a preferable form over knowing where the binary is within the container. If you're using a bare metal binary you're in control its working directory. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the fast answer! What does Jaeger treat as its working directory? The parent directory of the binary? The directory the binary was launched from? Or does it come from some configuration directive itself? |
Beta Was this translation helpful? Give feedback.
-
If you're talking about bare metal binary, the working dir is inherited from the shell that started the binary, i.e. it is whatever you want it to be. # config.json is read from the current dir, but Jaeger binary from elsewhere
$ SPAN_STORAGE_TYPE=memory ./cmd/query/query-darwin-amd64 --query.ui-config config.json |
Beta Was this translation helpful? Give feedback.
-
That clarifies it very well. Thank you! |
Beta Was this translation helpful? Give feedback.
If you're talking about bare metal binary, the working dir is inherited from the shell that started the binary, i.e. it is whatever you want it to be.
# config.json is read from the current dir, but Jaeger binary from elsewhere $ SPAN_STORAGE_TYPE=memory ./cmd/query/query-darwin-amd64 --query.ui-config config.json