forked from ceph/ceph-mixins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.libsonnet
43 lines (38 loc) · 1.28 KB
/
config.libsonnet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
_config+:: {
// Selectors are inserted between {} in Prometheus queries.
cephExporterSelector: 'job="rook-ceph-mgr"',
// Expected number of Ceph Managers which are reporting metrics
cephMgrCount: 1,
// Expected number of Ceph Mds which are reporting metrics
cephMdsCount: 2,
// Duration to raise various Alerts
cephNodeDownAlertTime: '30s',
clusterStateAlertTime: '10m',
clusterVersionAlertTime: '10m',
clusterUtilizationAlertTime: '5s',
clusterReadOnlyAlertTime: '0s',
monQuorumAlertTime: '15m',
monQuorumLeaderChangesAlertTime: '5m',
osdDataRebalanceAlertTime: '15s',
osdDataRecoveryAlertTime: '2h',
osdDataRecoveryInProgressAlertTime: '30s',
osdDiskAlertTime: '1m',
osdDownAlertTime: '5m',
osdUtilizationAlertTime: '40s',
PGRepairAlertTime: '1h',
pvcUtilizationAlertTime: '5s',
mgrMissingReplicasAlertTime: '5m',
mgrIsAbsentAlertTime: '5m',
mdsMissingReplicasAlertTime: '5m',
// Constants
storageType: 'ceph',
// For links between grafana dashboards, you need to tell us if your grafana
// servers under some non-root path.
grafanaPrefix: '',
// We build alerts for the presence of all these jobs.
jobs: {
CephExporter: $._config.cephExporterSelector,
},
},
}