I am wondering is there a way to limit the number of targets in prometheus. Searched prometheus documentation, but couldn't find such one. We are deploying prometheus using operators on k8s cluster and targets are added using servicemonitor crd. These yaml files are written by devs and I as a infra team can not control addition done by dev people. I am looking for global option in prometheus which can limit the addition of targets done in prometheus and throw error on prometheus dashboard saying something like upper limit has been reached.
Prometheus version-2.7
