Skip to content

Commit 97ddb1e

Browse files
Užík, Vladimírbalous
authored andcommitted
feat: cilium clustermesh alerts
1 parent 3805ed5 commit 97ddb1e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

cilium-enterprise-mixin/alerts/ciliumAlerts.libsonnet

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,33 @@
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: 'high',
283+
},
284+
annotations: {
285+
summary: "Agent can't mesh with {{$labels.target_cluster}}",
286+
},
287+
'for': '5m',
288+
},
289+
{
290+
alert: 'CiliumAgentRemoteClusterFailing',
291+
expr: 'sum(rate(cilium_clustermesh_remote_cluster_failures[5m])) by (%s) > 0' % std.join(', ', (['source_cluster', 'target_cluster'] + $._config.alertAggregationLabels)),
292+
labels: {
293+
severity: 'high',
294+
},
295+
annotations: {
296+
summary: 'Agent fails to mesh with {{$labels.target_cluster}}',
297+
},
298+
'for': '5m',
299+
},
300+
],
301+
},
275302
],
276303
},
277304
}

0 commit comments

Comments
 (0)