I’m running Zeebe workers using kubernetes and I’d like to scale their deployments by the number of pending jobs per job type. Currently I’m using the
zeebe_pending_jobs_total prometheus metric that is provided as an external metric to scale the deployment, but my problem is that this metric also counts the jobs that are failed, which will cause the deployment to be scaled up even when there’s nothing to do. Is there any way to just get the number of pending jobs that have not failed?
Thank you !