vectordotdev / vector

A high-performance observability data pipeline.
https://vector.dev
Mozilla Public License 2.0
18.26k stars 1.6k forks source link

enhancement: diagnostics subcommand #4660

Open lukesteensen opened 4 years ago

lukesteensen commented 4 years ago

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:

  1. Count and sizes of files in the configured directories
  2. Checkpointed positions compared to the current file size (i.e. lag)
  3. Latency of operations like globbing, fingerprinting, etc
binarylogic commented 4 years ago

Please also see #4670 for more details.

neuronull commented 1 year ago

Jotting down some thoughts that came to mind when this was brought up recently. There was a lot of discussion around having a command similar to what the Agent "flare" command does, for Vector.

For some of the investigations I've looked into, here are some things that would be helpful to capture: