Prometheus rolling back changes to configs

Hi,

we are running Prometheus in kubernetes cluster which is deployed by Helm charts. now when we are trying to add the new static targets into our prometheus configuration by editing secrets. it always rolling back the changes. did someone also faced the same issue?

What do you mean by “editing secrets”?
Adding new targets should be done by creating new ServiceMonitor object (which is CRD provided by prometheus operator helm chart)

Yes, now i configured new target through ServiceMonitor object. but i am facing some issues. do i need to define individual serviceMonitor objects for all the external targets. like i have four redis instances which i want to monitor. so do i need to define 4 serviceMonitor objects for this?