I installed DigitalOceans one-click-app prometheus operator for Kubernetes and have it successfully running and displaying cluster health.
The install creates a namespace prometheus-operator with a bunch of ServiceMonitors.
I was wondering if it was possible to use this install on external applications outside of its prometheus-operator namespace?
Or will I have to configure/install prometheus operator a different way to accommodate both situations?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Figured it out, Yes it is possible. You have to configure your ServiceMonitor to look at the specific namespace your application is on through namespaceSelector and give it a label that matches the deployed service which is by default release:prometheus-operator.