I am deploying a lightweight project monitor to multiple hosts to check for the availability of a specific port on that host. Previously, the following worked:
However, sometime fairly recently, it appears to have stopped parsing ${host.name} as the current host name, and I am getting the following error:
job could not be initialized: could not parse tcp host 'https://:8443'
I suspect that this means that it's trying to read ${host.name} as a parameter.
Because of the configuration of the web servers, I'm unable to use localhost:8443 as my address. Additionally, were I to do this, it would report the hostname as localhost for any alerts generated.
Is there any corresponding functionality for this? Am I able to do something like ${env.HOSTNAME}?
I'm currently using 8.15.1. This started sometime on 29 Aug, which appears to be when I upgraded my nodes to 8.15.0.
I am not sure what has been changed recently that would change the behaviour, let me see if there is any escape hatch. From which version did you upgrade?
Based on unit tests i have seen in code, behaviour has always been same though i believe it makes sense to not replace missing values, so i have made the PR to change it, most likely it will make 8.15.2 if got merged in time
Maybe I'm wrong about which version I updated from. I may have missed updating the agent to 8.14.3. In any case, it's probably not that relevant in this case, because...
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.