query: The PromQL query to find the value based on which autoscale is performed. In the example above, it finds the average values of the variable DCGM_FI_PROF_GR_ENGINE_ACTIVE
threshold: The threshold value to trigger active autoscale; in the example it is 0.8
As shown in the example above, whenever the average value of DCGM_FI_PROF_GR_ENGINE_ACTIVE exceeds 0.8, ScaledObject will scale the pods of the Deployment named gpu-test.
After creating the ScaledObject, the deployment will automatically scale down to 0, indicating successful configuration.