fix: rook-ceph csi metrics

This commit is contained in:
auricom
2021-12-23 00:36:46 +01:00
parent 776f934de0
commit 496931c4e9
4 changed files with 28 additions and 27 deletions

View File

@@ -20,7 +20,7 @@ spec:
timeZone: Europe/Paris
benji:
configuration:
configurationVersion: '1'
configurationVersion: "1"
databaseEngine: postgresql://benji:secret@benji-postgresql-headless:5432/benji
defaultStorage: storage-1
storages:
@@ -48,12 +48,12 @@ spec:
activeDeadlineSeconds: null
startingDeadlineSeconds: null
crontab:
- name: backup-data
- name: backup-pvc
schedule: "00 22 * * *"
command:
- benji-backup-pvc
- --selector
- 'benji-backup.me/instance=benji-k8s'
- "benji-backup.me/instance=benji-k8s"
- name: benji-enforce
schedule: "30 22 * * *"
command:

View File

@@ -8,3 +8,4 @@ resources:
- podmonitor.yaml
- prometheus-rule.yaml
- pgbackups.yaml
#- job.yaml

View File

@@ -53,7 +53,7 @@ spec:
devices:
- name: "nvme0n1"
cephBlockPools:
- name: ceph-blockpool
- name: replicapool
spec:
failureDomain: host
replicated:

View File

@@ -18,26 +18,26 @@ spec:
- port: http-metrics
path: /metrics
interval: 5s
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: csi-metrics
namespace: rook-ceph
labels:
team: rook
spec:
namespaceSelector:
matchNames:
- rook-ceph
selector:
matchLabels:
app: csi-metrics
endpoints:
- port: csi-http-metrics
path: /metrics
interval: 5s
# comment csi-grpc-metrics realated information if csi grpc metrics is not enabled
- port: csi-grpc-metrics
path: /metrics
interval: 5s
# ---
# apiVersion: monitoring.coreos.com/v1
# kind: ServiceMonitor
# metadata:
# name: csi-metrics
# namespace: rook-ceph
# labels:
# team: rook
# spec:
# namespaceSelector:
# matchNames:
# - rook-ceph
# selector:
# matchLabels:
# app: csi-metrics
# endpoints:
# - port: csi-http-metrics
# path: /metrics
# interval: 5s
# # comment csi-grpc-metrics realated information if csi grpc metrics is not enabled
# - port: csi-grpc-metrics
# path: /metrics
# interval: 5s