let's try these monitorings
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user