feat(traefik): Switch to ServiceMonitors for metric scraping
This commit is contained in:
parent
8b755928a2
commit
85159ee663
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
| Name | Usage | Accessibility | Host | DB type | Additional data | Backup configuration | Loki integration | Prometheus integration | Secret management | Status | Standalone migration |
|
| Name | Usage | Accessibility | Host | DB type | Additional data | Backup configuration | Loki integration | Prometheus integration | Secret management | Status | Standalone migration |
|
||||||
|-------------------------|--------------------------------------|------------------|-------------------------|------------|----------------------|----------------------|------------------|------------------------|------------------------|-----------------------------------|----------------------|
|
|-------------------------|--------------------------------------|------------------|-------------------------|------------|----------------------|----------------------|------------------|------------------------|------------------------|-----------------------------------|----------------------|
|
||||||
| Traefik | Reverse proxy and load balancer | Public & Private | Socrates & Pythagoras-b | - | - | - | Configured | Not configured | - | Completed<sup>5</sup> | Backbone |
|
| Traefik | Reverse proxy and load balancer | Public & Private | Socrates & Pythagoras-b | - | - | - | Configured | Configured | - | Completed<sup>5</sup> | Backbone |
|
||||||
| ArgoCD | Declarative GitOPS CD | Private | Pythagoras-b | - | - | - | Configured | Configured | - | Completed | Backbone |
|
| ArgoCD | Declarative GitOPS CD | Private | Pythagoras-b | - | - | - | Configured | Configured | - | Completed | Backbone |
|
||||||
| Vaultwarden | Password manager | Public | Pythagoras-b | PostgreSQL | - | 4AM K8s CronJob | Configured | Not available | Configured | Completed | Completed |
|
| Vaultwarden | Password manager | Public | Pythagoras-b | PostgreSQL | - | 4AM K8s CronJob | Configured | Not available | Configured | Completed | Completed |
|
||||||
| Radarr | Movie collection manager | Private | Plato | PostgreSQL | - | - | Configured | Not configured | Not configured | Partial | Awaiting |
|
| Radarr | Movie collection manager | Private | Plato | PostgreSQL | - | - | Configured | Not configured | Not configured | Partial | Awaiting |
|
||||||
|
@ -5,3 +5,4 @@ resources:
|
|||||||
- pvc.yaml
|
- pvc.yaml
|
||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
- service.yaml
|
- service.yaml
|
||||||
|
- servicemonitor.yaml
|
||||||
|
@ -1,23 +1,16 @@
|
|||||||
---
|
---
|
||||||
# Source: traefik/templates/service.yaml
|
# Source: traefik/templates/service.yaml
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: List
|
|
||||||
metadata:
|
|
||||||
name: traefik-external
|
|
||||||
items:
|
|
||||||
- apiVersion: v1
|
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: traefik-external
|
name: traefik-external
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: traefik-external
|
app.kubernetes.io/name: traefik-external
|
||||||
helm.sh/chart: traefik-10.24.2
|
app.kubernetes.io/instance: traefik-external
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
app.kubernetes.io/instance: traefik
|
|
||||||
annotations:
|
annotations:
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
loadBalancerIP: 10.19.66.247
|
loadBalancerIP: 10.18.242.163
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: traefik
|
app.kubernetes.io/name: traefik
|
||||||
app.kubernetes.io/instance: traefik
|
app.kubernetes.io/instance: traefik
|
||||||
@ -34,3 +27,7 @@ items:
|
|||||||
name: websecure
|
name: websecure
|
||||||
targetPort: "websecure"
|
targetPort: "websecure"
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
- port: 9100
|
||||||
|
name: metrics
|
||||||
|
targetPort: "metrics"
|
||||||
|
protocol: TCP
|
||||||
|
13
traefik/traefik-external/servicemonitor.yaml
Normal file
13
traefik/traefik-external/servicemonitor.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
name: traefik-external
|
||||||
|
labels:
|
||||||
|
team: core
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: traefik
|
||||||
|
endpoints:
|
||||||
|
- port: metrics
|
||||||
|
path: /metrics
|
@ -5,3 +5,4 @@ resources:
|
|||||||
- pvc.yaml
|
- pvc.yaml
|
||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
- service.yaml
|
- service.yaml
|
||||||
|
- servicemonitor.yaml
|
||||||
|
@ -8,6 +8,7 @@ metadata:
|
|||||||
app.kubernetes.io/instance: traefik-inter
|
app.kubernetes.io/instance: traefik-inter
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
|
loadBalancerIP: 10.10.0.26
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: traefik-inter
|
app.kubernetes.io/name: traefik-inter
|
||||||
app.kubernetes.io/instance: traefik-inter
|
app.kubernetes.io/instance: traefik-inter
|
||||||
@ -20,3 +21,7 @@ spec:
|
|||||||
name: websecure
|
name: websecure
|
||||||
targetPort: "websecure"
|
targetPort: "websecure"
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
- port: 9100
|
||||||
|
name: metrics
|
||||||
|
targetPort: "metrics"
|
||||||
|
protocol: TCP
|
||||||
|
13
traefik/traefik-internal/servicemonitor.yaml
Normal file
13
traefik/traefik-internal/servicemonitor.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
name: traefik-inter
|
||||||
|
labels:
|
||||||
|
team: core
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: traefik-inter
|
||||||
|
endpoints:
|
||||||
|
- port: metrics
|
||||||
|
path: /metrics
|
Loading…
Reference in New Issue
Block a user