@@ -125,3 +125,37 @@ ALERT ClusterRebalanceDisabled
125
125
description="{{$labels.instance}} reports that cluster rebalance has been disabled on {{$labels.cluster}}",
126
126
summary="Cluster rebalance disabled on cluster {{$labels.cluster}}"
127
127
}
128
+ #Cluster settings
129
+ ALERT ClusterAllocationDisabledPersistently
130
+ IF cluster_persistent_settings{cluster_routing_allocation_enable="none"} > 0
131
+ FOR 5m
132
+ LABELS {severity="warning"}
133
+ ANNOTATIONS {
134
+ description="{{$labels.instance}} reports that cluster allocation has been disabled for {{$labels.cluster}}",
135
+ summary="Cluster allocation disabled on cluster {{$labels.cluster}}"
136
+ }
137
+ ALERT ClusterRebalanceDisabledPersistently
138
+ IF cluster_persistent_settings{cluster_routing_rebalance_enable="none"} > 0
139
+ FOR 5m
140
+ LABELS {severity="warning"}
141
+ ANNOTATIONS {
142
+ description="{{$labels.instance}} reports that cluster rebalance has been disabled on {{$labels.cluster}}",
143
+ summary="Cluster rebalance disabled on cluster {{$labels.cluster}}"
144
+ }
145
+
146
+ ALERT ClusterReadOnly
147
+ IF cluster_settings{cluster_blocks_read_only!="false"} > 0
148
+ FOR 1min
149
+ LABELS {severity="critical"}
150
+ ANNOTATIONS {
151
+ description="{{$labels.instance}} reports that cluster {{$labels.cluster}} is in read-only mode",
152
+ summary="Cluster {{$labels.cluster}} is read-only"
153
+ }
154
+ ALERT ClusterReadOnlyPersistently
155
+ IF cluster_persistent_settings{cluster_blocks_read_only!="false"} > 0
156
+ FOR 1min
157
+ LABELS {severity="critical"}
158
+ ANNOTATIONS {
159
+ description="{{$labels.instance}} reports that cluster {{$labels.cluster}} is in read-only mode",
160
+ summary="Cluster {{$labels.cluster}} is read-only"
161
+ }
0 commit comments