summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kubernetes/monitoring.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/kubernetes/monitoring.yml b/kubernetes/monitoring.yml
new file mode 100644
index 00000000..4450dfac
--- /dev/null
+++ b/kubernetes/monitoring.yml
@@ -0,0 +1,18 @@
+apiVersion: monitoring.coreos.com/v1
+kind: ServiceMonitor
+metadata:
+ labels:
+ release: prometheus-operator
+ k8s-app: spring-boot-actuator-monitor
+ name: spring-boot-actuator-monitor
+ namespace: seven-wonders
+spec:
+ endpoints:
+ - interval: 10s
+ path: /actuator/prometheus
+ port: 80-80
+ namespaceSelector:
+ any: true
+ selector:
+ matchLabels:
+ app: seven-wonders
bgstack15