From 3a6d38ea0e4184ce13d82d92921a100a079c0ddc Mon Sep 17 00:00:00 2001
From: Max Leonard Inden <IndenML@gmail.com>
Date: Mon, 19 Mar 2018 13:34:18 +0100
Subject: [PATCH] contrib/kube: Restrict example-app servicemonitor to default
 ns

The `prometheus-frontend` role of the example app kubeprometheus section
is scoped to the default namespace. Thereby the frontend Prometheus
instance is not able to discover anything outside of the default
namespace. We might as well restrict the front end service monitor to
the default namespace too.
---
 manifests/examples/example-app/servicemonitor-frontend.yaml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/manifests/examples/example-app/servicemonitor-frontend.yaml b/manifests/examples/example-app/servicemonitor-frontend.yaml
index cc3d42fa..067a7a89 100644
--- a/manifests/examples/example-app/servicemonitor-frontend.yaml
+++ b/manifests/examples/example-app/servicemonitor-frontend.yaml
@@ -10,4 +10,7 @@ spec:
       tier: frontend
   endpoints:
   - port: web
-    interval: 10s
\ No newline at end of file
+    interval: 10s
+  namespaceSelector:
+    matchNames:
+      - default
-- 
GitLab