<p>Prometheus deployed using <a href="https://github.com/coreos/kube-prometheus" rel="nofollow noreferrer">kube-prometheus</a> can't scrape resources on namespaces other than <code>default</code>, <code>monitoring</code> and <code>kube-system</code>. I added additional namespaces on my <code>jsonnet</code> as described in <a href="https://github.com/coreos/kube-prometheus" rel="nofollow noreferrer">kube-prometheus README</a> but no success...</p>
<p>I also tried to create a new <code>ServiceMonitor</code> manually, but no success...</p>
<p>I appreciate any help.
Thanks.</p>

<p>If you used the pre-compiled manifests <a href="https://github.com/coreos/kube-prometheus/blob/3c109369d4d4e19d2bab9e073797eb971a5eb957/manifests/prometheus-roleBindingSpecificNamespaces.yaml" rel="nofollow noreferrer">here</a> you will only have your service account with 3 rolebindings allowing access to the namespaces you mentioned.</p>

<p>You can add more namespaces for example by applying the same <code>roleBinding</code> in more namespaces.</p>

<p>This is more secure as opposed to using a <code>clusterRoleBinding</code> since it allows for more finegrained permissions.</p>
