Idea ? How to update Prometheus configmap auto when i deploy new app

Hi All,

I have a Prometheus stack to monitor Elasticsearch clusters.

I would like to know how to update automatically an existing configmap when i deploy a new application ?

I deploy new Elastic app with helm install. So I must update manually my prometheus config to declare my new app. It’s not possible to update automatically the Prometheus config.

Best Regards