feat: add ability to ship k3s container logs via vector

If a global vector-sink property on the logs plugin is set, we will use that to configure a log sink (defaulting to console output otherwise). Note that the actual configuration still needs to be a valid DSN representing a Vector log sink.

While this does not support pinning log sinks to specific apps, it opens up integration for those who use a single k3s cluster in shared tenancy.
This commit is contained in:
Jose Diaz-Gonzalez
2025-04-14 04:35:21 -04:00
parent fa55f38258
commit b97e8f3601
9 changed files with 157 additions and 54 deletions

View File

@@ -49,7 +49,7 @@ func validateVectorSink(appName string, value string) error {
return nil
}
_, err := sinkValueToConfig(appName, value)
_, err := SinkValueToConfig(appName, value)
if err != nil {
return err
}