let's try these monitorings

This commit is contained in:
Remy Moll 2024-01-08 15:48:32 +01:00
parent e473abda12
commit 3699b79f1a
2 changed files with 20 additions and 5 deletions

View File

@ -9,9 +9,8 @@ spec:
matchLabels:
app: syncthing
endpoints:
- port: web
- port: syncthing-web
path: /metrics
targetPort: syncthing-web
bearerTokenSecret:
name: syncthing-api
key: token

View File

@ -1,13 +1,29 @@
# apiVersion: monitoring.coreos.com/v1
# kind: ServiceMonitor
# metadata:
# name: traefik-servicemonitor
# labels:
# app: traefik
# spec:
# selector:
# matchLabels:
# app.kubernetes.io/name: traefik
# endpoints:
# - port: metrics
# path: /metrics
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
kind: PodMonitor
metadata:
name: traefik-servicemonitor
name: traefik-podmonitor
labels:
app: traefik
spec:
selector:
matchLabels:
app.kubernetes.io/name: traefik
endpoints:
namespaceSelector:
matchNames:
- traefik-system
podMetricsEndpoints:
- port: metrics
path: /metrics