The Infrastructure dashboard has a Wizard that allows to easily Add Custom Rules. This is briefly documented on the Foglight for Infrastructure User Guide. This feature is available since Foglight for Infrastructure cartridge version 5.9.2.
See screenshot and follow steps below.

A few notes to consider when creating Infrastructure Custom Rules with this wizard: