Skip to content

Commit 5dc644b

Browse files
Užík, Vladimírbalous
authored andcommitted
feat: cilium clustermesh alerts
1 parent 866f8a7 commit 5dc644b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

cilium-enterprise-mixin/alerts/ciliumAlerts.libsonnet

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,35 @@
272272
},
273273
],
274274
},
275+
{
276+
name: 'Cilium Clustermesh',
277+
rules: [
278+
{
279+
alert: 'CiliumAgentRemoteClusterNotReady',
280+
expr: 'count(cilium_clustermesh_remote_cluster_readiness_status < 1) by (%s) > 0' % std.join(', ', (['source_cluster', 'target_cluster'] + $._config.alertAggregationLabels)),
281+
labels: {
282+
severity: 'critical',
283+
},
284+
annotations: {
285+
summary: "Agent can't mesh with remote cluster.",
286+
description: "Agent can't mesh with {{$labels.target_cluster}}",
287+
},
288+
'for': '5m',
289+
},
290+
{
291+
alert: 'CiliumAgentRemoteClusterFailing',
292+
expr: 'sum(rate(cilium_clustermesh_remote_cluster_failures[5m])) by (%s) > 0' % std.join(', ', (['source_cluster', 'target_cluster'] + $._config.alertAggregationLabels)),
293+
labels: {
294+
severity: 'critical',
295+
},
296+
annotations: {
297+
summary: 'Agent fails to mesh with remote cluster.',
298+
description: 'Agent fails to mesh with {{$labels.target_cluster}}',
299+
},
300+
'for': '5m',
301+
},
302+
],
303+
},
275304
],
276305
},
277306
}

0 commit comments

Comments
 (0)