From 3bdef14031f7d4acdeec5c0390b1e81fdb751408 Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Wed, 10 Feb 2021 00:41:55 +0100 Subject: Add prometheus ServiceMonitor config --- kubernetes/monitoring.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 kubernetes/monitoring.yml 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 -- cgit