I'd like to understand how prometheus operator works and how to customize deployment for my needs.
I've decided to use custom prometheus instance base on the operator for apps ? ( is it good approach ? )
Next, I've decided to locate ServiceMonitors in applications namespaces to keep it together with projects. ( is it a good approach ? )
And when I put ServiceMonitor to application namespace Prometheus operator is unable to create prometheus configuration ( no endpoint appears in service discovery, no targets ). How to diagnose this ? What permissions should I set to PrometheusOperator for ServiceMonitor in application namespace? Should I deploy operator with additional container args?