Add metrics and logging of invalid ips