diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-10 00:41:55 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-13 18:43:48 +0100 |
commit | 3bdef14031f7d4acdeec5c0390b1e81fdb751408 (patch) | |
tree | 984a2b2a7451f66ce3d40e4131593a4b530387c8 /kubernetes | |
parent | Avoid exception in test (harmless, but still) (diff) | |
download | seven-wonders-3bdef14031f7d4acdeec5c0390b1e81fdb751408.tar.gz seven-wonders-3bdef14031f7d4acdeec5c0390b1e81fdb751408.tar.bz2 seven-wonders-3bdef14031f7d4acdeec5c0390b1e81fdb751408.zip |
Add prometheus ServiceMonitor config
Diffstat (limited to 'kubernetes')
-rw-r--r-- | kubernetes/monitoring.yml | 18 |
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 |