This commit is contained in:
parent
dc478f9f3f
commit
92097395fa
3 changed files with 21 additions and 0 deletions
|
@ -25,6 +25,7 @@ resources:
|
|||
- resources/api_routes.yaml
|
||||
- resources/web_routes.yaml
|
||||
- resources/pdb.yaml
|
||||
- resources/servicemonitor.yaml
|
||||
- backup/
|
||||
|
||||
configMapGenerator:
|
||||
|
|
18
garage/resources/servicemonitor.yaml
Normal file
18
garage/resources/servicemonitor.yaml
Normal 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
|
|
@ -17,6 +17,8 @@ apiVersion: v1
|
|||
kind: Service
|
||||
metadata:
|
||||
name: garage-metrics
|
||||
labels:
|
||||
app.kubernetes.io/component: metrics
|
||||
spec:
|
||||
type: ClusterIP
|
||||
clusterIP: None
|
||||
|
|
Loading…
Reference in a new issue