This is an example of a way to address issue #16 and issue #18 which prevent use of the analytics forwarding capability of the machine agent as currently configured.
It will use the existing variables to put selectors that match up with what is on the daemonset for the machine agent, and it uses the analytics port defined and referenced in values to determine the internal analytics port as well as the external one. A default of 9090 here will work with the current machine agent analytics container (at least until it falls fully out of use).
This is an example of a way to address issue #16 and issue #18 which prevent use of the analytics forwarding capability of the machine agent as currently configured.
It will use the existing variables to put selectors that match up with what is on the daemonset for the machine agent, and it uses the analytics port defined and referenced in values to determine the internal analytics port as well as the external one. A default of 9090 here will work with the current machine agent analytics container (at least until it falls fully out of use).