Skip to content

Commit f44fd44

Browse files
committed
feat: kvstoremesh alerts
1 parent 5dc644b commit f44fd44

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

cilium-enterprise-mixin/alerts/ciliumAlerts.libsonnet

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,47 @@
301301
},
302302
],
303303
},
304+
{
305+
name: 'Cilium Kvstoremesh',
306+
rules: [
307+
{
308+
alert: 'CiliumKvstoremeshRemoteClusterNotReady',
309+
expr: 'count(cilium_kvstoremesh_remote_cluster_readiness_status < 1) by (%s) > 0' % std.join(', ', (['source_cluster', 'target_cluster'] + $._config.alertAggregationLabels)),
310+
labels: {
311+
severity: 'critical',
312+
},
313+
annotations: {
314+
summary: "Kvstoremesh can't mesh with remote cluster.",
315+
description: "Kvstoremesh can't mesh with {{$labels.target_cluster}}",
316+
},
317+
'for': '5m',
318+
},
319+
{
320+
alert: 'CiliumKvstoremeshRemoteClusterFailing',
321+
expr: 'sum(rate(cilium_kvstoremesh_remote_cluster_failures[5m])) by (%s) > 0' % std.join(', ', (['source_cluster', 'target_cluster'] + $._config.alertAggregationLabels)),
322+
labels: {
323+
severity: 'critical',
324+
},
325+
annotations: {
326+
summary: 'Kvstoremesh fails to mesh with remote cluster.',
327+
description: 'Kvstoremesh fails to mesh with {{$labels.target_cluster}}',
328+
},
329+
'for': '5m',
330+
},
331+
{
332+
alert: 'CiliumKvstoremeshErrors',
333+
expr: 'sum(rate(cilium_kvstoremesh_kvstore_sync_errors_total[5m])) by (%s) > 0' % std.join(', ', (['source_cluster'] + $._config.alertAggregationLabels)),
334+
labels: {
335+
severity: 'critical',
336+
},
337+
annotations: {
338+
summary: 'Kvstoremesh fails to mesh with remote cluster.',
339+
description: 'Kvstoremesh fails to mesh with {{$labels.target_cluster}}',
340+
},
341+
'for': '5m',
342+
},
343+
],
344+
},
304345
],
305346
},
306347
}

0 commit comments

Comments
 (0)