feat(garage): scrape metrics
Some checks failed
Renovate / renovate (push) Has been cancelled

This commit is contained in:
Peter 2024-05-18 12:10:59 +02:00
parent dc478f9f3f
commit 92097395fa
Signed by: prskr
GPG key ID: F56BED6903BC5E37
3 changed files with 21 additions and 0 deletions

View file

@ -25,6 +25,7 @@ resources:
- resources/api_routes.yaml - resources/api_routes.yaml
- resources/web_routes.yaml - resources/web_routes.yaml
- resources/pdb.yaml - resources/pdb.yaml
- resources/servicemonitor.yaml
- backup/ - backup/
configMapGenerator: configMapGenerator:

View file

@ -0,0 +1,18 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: garage
spec:
endpoints:
- honorLabels: true
path: /metrics
port: metrics
scheme: http
scrapeTimeout: 30s
jobLabel: garage
namespaceSelector:
matchNames:
- garage
selector:
matchLabels:
app.kubernetes.io/component: metrics

View file

@ -17,6 +17,8 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: garage-metrics name: garage-metrics
labels:
app.kubernetes.io/component: metrics
spec: spec:
type: ClusterIP type: ClusterIP
clusterIP: None clusterIP: None