let's try these monitorings
This commit is contained in:
parent
e473abda12
commit
3699b79f1a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user