🔧 embed service monitors into helmreleases

This commit is contained in:
auricom
2022-10-20 07:02:06 +02:00
parent 19cf4aa3ff
commit f0960ef114
18 changed files with 78 additions and 83 deletions

View File

@@ -46,6 +46,8 @@ spec:
ports:
http:
port: *port
monitor:
enabled: true
podSecurityContext:
runAsUser: 1000
runAsGroup: 1000

View File

@@ -3,4 +3,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helm-release.yaml
- prometheus.yaml
- prometheus-rule.yaml

View File

@@ -1,24 +1,5 @@
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: &app zigbee2mqtt-exporter
namespace: default
labels: &labels
app.kubernetes.io/instance: *app
app.kubernetes.io/name: *app
spec:
selector:
matchLabels:
<<: *labels
endpoints:
- port: http
scheme: http
path: /metrics
interval: 1m
scrapeTimeout: 10s
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: zigbee2mqtt-exporter

View File

@@ -40,6 +40,8 @@ spec:
websocket:
enabled: true
port: 3000
monitor:
enabled: true
probes:
liveness: &probes
enabled: true