summaryrefslogtreecommitdiff
path: root/kubernetes/monitoring.yml
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2021-02-10 00:41:55 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2021-02-13 18:43:48 +0100
commit3bdef14031f7d4acdeec5c0390b1e81fdb751408 (patch)
tree984a2b2a7451f66ce3d40e4131593a4b530387c8 /kubernetes/monitoring.yml
parentAvoid exception in test (harmless, but still) (diff)
downloadseven-wonders-3bdef14031f7d4acdeec5c0390b1e81fdb751408.tar.gz
seven-wonders-3bdef14031f7d4acdeec5c0390b1e81fdb751408.tar.bz2
seven-wonders-3bdef14031f7d4acdeec5c0390b1e81fdb751408.zip
Add prometheus ServiceMonitor config
Diffstat (limited to 'kubernetes/monitoring.yml')
-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