enhancement: diagnostics subcommand #4660
Labels
domain: observability
Anything related to monitoring/observing Vector
domain: setup
Anything related to setting up or installing Vector
type: enhancement
A value-adding code change that enhances its existing functionality.
One of the biggest challenges when trying to help Vector users debug issues is collecting all of the relevant data from their environment. This can involve a lot of back and forth and it's not always clear which commands to run to get Vector-specific info like file checkpoints.
To address this, we should add a diagnostics subcommand (similar to homebrew's
doctor
command) that loads a user's config and gathers relevant information. That information can then be formatted nicely and output to the terminal or a file for the user to pass along to us.Each component can independently implement its own set of checks via another
build
-style method on the config traits. For example, the file source checks could return information like the following:The text was updated successfully, but these errors were encountered: