Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

--watch-config hot reloading is not working with config namespacing #20547

Open
Ficklecode opened this issue May 22, 2024 · 3 comments
Open

--watch-config hot reloading is not working with config namespacing #20547

Ficklecode opened this issue May 22, 2024 · 3 comments
Labels
domain: config Anything related to configuring Vector type: bug A code related bug.

Comments

@Ficklecode
Copy link

Ficklecode commented May 22, 2024

A note for the community

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

Using the automatic-namespacing scenario, and after successfully starting with the command "vector -C /etc/vector -w", if you edit the configuration in the sources, transforms, and sinks directories and find that hot reloading is not working

https://vector.dev/docs/reference/configuration/#automatic-namespacing

Configuration

No response

Version

0.38.0

Debug Output

No response

Example Data

No response

Additional Context

No response

References

No response

@Ficklecode Ficklecode added the type: bug A code related bug. label May 22, 2024
@jszwedko jszwedko changed the title --watch-config hot reloading is not working --watch-config hot reloading is not working with config namespacing May 22, 2024
@jszwedko
Copy link
Member

@Ficklecode note that --watch-config only looks for changes to loaded files. I don't believe it rescans for new ones (though ideally it should). Can you confirm if you are making edits to existing files or writing new ones?

@jszwedko jszwedko added the domain: config Anything related to configuring Vector label May 22, 2024
@Ficklecode
Copy link
Author

@jszwedko It is to modify the existing files before startup, and according to my tests, when using the command 'vector -C /etc/vector -w', creating, modifying, and deleting configurations under /etc/vector can all be hot-reloaded. However, hot reloading does not take effect when modifying files in /etc/vector/sources. I tried specifying /etc/vector/* at startup, and automatic-namespacing causes an exception to be thrown

@jszwedko
Copy link
Member

Ah I see, thanks for clarifying!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: config Anything related to configuring Vector type: bug A code related bug.
Projects
None yet
Development

No branches or pull requests

2 participants