Peculiar problem. For some reason, the value in stdout is not being recognized correctly. What I am trying to do is to grep value of the port being listened on and try to match.
Forcefully cast stdout string to number: (kafka_prom_port == prom_status.stdout|int)
stdout
(kafka_prom_port == prom_status.stdout|int)