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/api_routes.yaml
|
||||||
- resources/web_routes.yaml
|
- resources/web_routes.yaml
|
||||||
- resources/pdb.yaml
|
- resources/pdb.yaml
|
||||||
|
- resources/servicemonitor.yaml
|
||||||
- backup/
|
- backup/
|
||||||
|
|
||||||
configMapGenerator:
|
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
|
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
|
||||||
|
|
Loading…
Reference in a new issue