How to create an alert on new host?

Hi all,
Do you know what kind of query I need to do to create an alert to detect that a new host as started to send metrics in influxdb?
Thanks