KEDA scalers can both detect if a deployment should be activated or deactivated, and feed custom metrics for a specific event source.

Currently available scalers for KEDA