From 5dc644b4fa26e57c988f3c9c5bf1118d1a25321f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C5=BE=C3=ADk=2C=20Vladim=C3=ADr?= Date: Thu, 16 May 2024 14:35:09 +0200 Subject: [PATCH 1/3] feat: cilium clustermesh alerts --- .../alerts/ciliumAlerts.libsonnet | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/cilium-enterprise-mixin/alerts/ciliumAlerts.libsonnet b/cilium-enterprise-mixin/alerts/ciliumAlerts.libsonnet index bc0ef91ac..96b369833 100644 --- a/cilium-enterprise-mixin/alerts/ciliumAlerts.libsonnet +++ b/cilium-enterprise-mixin/alerts/ciliumAlerts.libsonnet @@ -272,6 +272,35 @@ }, ], }, + { + name: 'Cilium Clustermesh', + rules: [ + { + alert: 'CiliumAgentRemoteClusterNotReady', + expr: 'count(cilium_clustermesh_remote_cluster_readiness_status < 1) by (%s) > 0' % std.join(', ', (['source_cluster', 'target_cluster'] + $._config.alertAggregationLabels)), + labels: { + severity: 'critical', + }, + annotations: { + summary: "Agent can't mesh with remote cluster.", + description: "Agent can't mesh with {{$labels.target_cluster}}", + }, + 'for': '5m', + }, + { + alert: 'CiliumAgentRemoteClusterFailing', + expr: 'sum(rate(cilium_clustermesh_remote_cluster_failures[5m])) by (%s) > 0' % std.join(', ', (['source_cluster', 'target_cluster'] + $._config.alertAggregationLabels)), + labels: { + severity: 'critical', + }, + annotations: { + summary: 'Agent fails to mesh with remote cluster.', + description: 'Agent fails to mesh with {{$labels.target_cluster}}', + }, + 'for': '5m', + }, + ], + }, ], }, } From f44fd443e358677e92ce680ccd988546c809331c Mon Sep 17 00:00:00 2001 From: Petr Baloun Date: Tue, 15 Oct 2024 08:21:16 +0200 Subject: [PATCH 2/3] feat: kvstoremesh alerts --- .../alerts/ciliumAlerts.libsonnet | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/cilium-enterprise-mixin/alerts/ciliumAlerts.libsonnet b/cilium-enterprise-mixin/alerts/ciliumAlerts.libsonnet index 96b369833..5adebe484 100644 --- a/cilium-enterprise-mixin/alerts/ciliumAlerts.libsonnet +++ b/cilium-enterprise-mixin/alerts/ciliumAlerts.libsonnet @@ -301,6 +301,47 @@ }, ], }, + { + name: 'Cilium Kvstoremesh', + rules: [ + { + alert: 'CiliumKvstoremeshRemoteClusterNotReady', + expr: 'count(cilium_kvstoremesh_remote_cluster_readiness_status < 1) by (%s) > 0' % std.join(', ', (['source_cluster', 'target_cluster'] + $._config.alertAggregationLabels)), + labels: { + severity: 'critical', + }, + annotations: { + summary: "Kvstoremesh can't mesh with remote cluster.", + description: "Kvstoremesh can't mesh with {{$labels.target_cluster}}", + }, + 'for': '5m', + }, + { + alert: 'CiliumKvstoremeshRemoteClusterFailing', + expr: 'sum(rate(cilium_kvstoremesh_remote_cluster_failures[5m])) by (%s) > 0' % std.join(', ', (['source_cluster', 'target_cluster'] + $._config.alertAggregationLabels)), + labels: { + severity: 'critical', + }, + annotations: { + summary: 'Kvstoremesh fails to mesh with remote cluster.', + description: 'Kvstoremesh fails to mesh with {{$labels.target_cluster}}', + }, + 'for': '5m', + }, + { + alert: 'CiliumKvstoremeshErrors', + expr: 'sum(rate(cilium_kvstoremesh_kvstore_sync_errors_total[5m])) by (%s) > 0' % std.join(', ', (['source_cluster'] + $._config.alertAggregationLabels)), + labels: { + severity: 'critical', + }, + annotations: { + summary: 'Kvstoremesh fails to mesh with remote cluster.', + description: 'Kvstoremesh fails to mesh with {{$labels.target_cluster}}', + }, + 'for': '5m', + }, + ], + }, ], }, } From 78ce55b485a7270e1e30b57dd145f81925326ec6 Mon Sep 17 00:00:00 2001 From: Petr Baloun Date: Wed, 23 Oct 2024 07:40:15 +0200 Subject: [PATCH 3/3] Added jsonnetfile to cilium-enterprise-mixin --- cilium-enterprise-mixin/jsonnetfile.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 cilium-enterprise-mixin/jsonnetfile.json diff --git a/cilium-enterprise-mixin/jsonnetfile.json b/cilium-enterprise-mixin/jsonnetfile.json new file mode 100644 index 000000000..b46345153 --- /dev/null +++ b/cilium-enterprise-mixin/jsonnetfile.json @@ -0,0 +1,6 @@ +{ + "version": 1, + "dependencies": [], + "legacyImports": false +} +