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: matchLabels:
app: syncthing app: syncthing
endpoints: endpoints:
- port: web - port: syncthing-web
path: /metrics path: /metrics
targetPort: syncthing-web
bearerTokenSecret: bearerTokenSecret:
name: syncthing-api name: syncthing-api
key: token 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 apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor kind: PodMonitor
metadata: metadata:
name: traefik-servicemonitor name: traefik-podmonitor
labels: labels:
app: traefik app: traefik
spec: spec:
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: traefik app.kubernetes.io/name: traefik
endpoints: namespaceSelector:
matchNames:
- traefik-system
podMetricsEndpoints:
- port: metrics - port: metrics
path: /metrics path: /metrics