Skip to content

Commit 4a5cb40

Browse files
committed
feat: kvstoremesh alerts
1 parent 97ddb1e commit 4a5cb40

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

cilium-enterprise-mixin/alerts/ciliumAlerts.libsonnet

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,44 @@
299299
},
300300
],
301301
},
302+
{
303+
name: 'Cilium Kvstoremesh',
304+
rules: [
305+
{
306+
alert: 'CiliumKvstoremeshRemoteClusterNotReady',
307+
expr: 'count(cilium_kvstoremesh_remote_cluster_readiness_status < 1) by (%s) > 0' % std.join(', ', (['source_cluster', 'target_cluster'] + $._config.alertAggregationLabels)),
308+
labels: {
309+
severity: 'high',
310+
},
311+
annotations: {
312+
summary: "Kvstoremesh can't mesh with {{$labels.target_cluster}}",
313+
},
314+
'for': '5m',
315+
},
316+
{
317+
alert: 'CiliumKvstoremeshRemoteClusterFailing',
318+
expr: 'sum(rate(cilium_kvstoremesh_remote_cluster_failures[5m])) by (%s) > 0' % std.join(', ', (['source_cluster', 'target_cluster'] + $._config.alertAggregationLabels)),
319+
labels: {
320+
severity: 'high',
321+
},
322+
annotations: {
323+
summary: 'Kvstoremesh fails to mesh with {{$labels.target_cluster}}',
324+
},
325+
'for': '5m',
326+
},
327+
{
328+
alert: 'CiliumKvstoremeshErrors',
329+
expr: 'sum(rate(cilium_kvstoremesh_kvstore_sync_errors_total[5m])) by (%s) > 0' % std.join(', ', (['source_cluster'] + $._config.alertAggregationLabels)),
330+
labels: {
331+
severity: 'high',
332+
},
333+
annotations: {
334+
summary: 'Kvstoremesh fails to mesh with {{$labels.target_cluster}}',
335+
},
336+
'for': '5m',
337+
},
338+
],
339+
},
302340
],
303341
},
304342
}

0 commit comments

Comments
 (0)