Skip to content

Commit b976154

Browse files
balousUžík, Vladimír
andauthored
Cilium clustermesh alerts (#1347)
* feat: cilium clustermesh alerts * feat: kvstoremesh alerts * Added jsonnetfile to cilium-enterprise-mixin --------- Co-authored-by: Užík, Vladimír <[email protected]>
1 parent 866f8a7 commit b976154

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed

cilium-enterprise-mixin/alerts/ciliumAlerts.libsonnet

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,76 @@
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+
},
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+
},
275345
],
276346
},
277347
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"version": 1,
3+
"dependencies": [],
4+
"legacyImports": false
5+
}
6+

0 commit comments

Comments
 (0)