-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate Connector Usage #8721
Comments
cc @djaglowski |
This problem is not specific to connectors. The validate command currently does not consider supported data types for any class of component. That said, I agree there are additional configuration errors, such as this one, which we could surface within the command if we would try to instantiate (but not start) a service. |
I raised this in #8866 after missing this issue in a search (somehow). As I noted in that issue, it'd also be extremely helpful if the connector error mentioned the specific pipeline name in its complaint, e.g
Currently it doesn't name the actual pipeline, so in complex configurations it can be tricky to tell what exactly it's complaining about. |
Any eyes on this? |
@robincw-gr I don't think there is anyone working on this at the moment. In general there is no way to statically validate all things that would prevent the Collector from starting (think for example about a server using a port that is not available or some permissions issue). But I agree this should be considered a bug since it is statically verifiable. |
Is your feature request related to a problem? Please describe.
I expected the configuration validator to find pipeline issues related to invalid usage of connector components, however the collector fails to start due to invalid usage and exits.
Here is an example that defines a
count
connector and uses it as a receiver in a metrics pipeline:The config.yaml passes validation:
However upon using this configuration, the collector reports an error and exits:
Describe the solution you'd like
I expect the validator to return an error
The text was updated successfully, but these errors were encountered: