vectordotdev / vector

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

`kubernetes_log` source: Specify a user agent when making requests to the k8s api server #21864

Open ganelo opened 15 hours ago

ganelo commented 15 hours ago

Looking at logs generated by k8s-audit-webhook, I can see that when vector requests the set of pods from the k8s api server, it is not specifying a user agent. This makes it difficult to attribute load on the api server to the correct client (namely, vector).

ganelo commented 11 hours ago

I have a branch on which I've put together a proposed fix; I'm working through the contributions documentation to bring it up to snuff, but if you want a sneak peak you can find it here: https://github.com/vectordotdev/vector/compare/master...ganelo:vector:og/kubernetes-user-agent

jszwedko commented 11 hours ago

I have a branch on which I've put together a proposed fix; I'm working through the contributions documentation to bring it up to snuff, but if you want a sneak peak you can find it here: master...ganelo:vector:og/kubernetes-user-agent

Awesome, this seems to be on the right track!