Update AA to send container name, id, image, hostname, host.hostname and kubernetes pod, namespace, and cluster tags if present as physical tags with all metrics
The above tags can be passed as env vars to AA container image from STA or during manual startup. AA expects either all container tags or all kubernetes tags to be present. else will throw an error and won't proceed
when these params are set AA assumes it is running in a container or k8s env
The old logic of .docker file will continue to work with nodejs based disco.
Adjusted container.hostname to be read from any app config param which ends with _HOST_PORT
Tested with normal process based install (should not send any of the above tags ) and from STA auto disco. Tested k8s by manually passing the env vars but not in actual k8s setup
Sample output:
The physical hostname is optimus-prime and AA is monitoring ES docker container
_HOST_PORT
Tested with normal process based install (should not send any of the above tags ) and from STA auto disco. Tested k8s by manually passing the env vars but not in actual k8s setup
Sample output:
The physical hostname is
optimus-prime
and AA is monitoring ES docker container